{"id":18271003,"url":"https://github.com/doubleencore/DETweetComposeViewController","last_synced_at":"2025-04-05T01:30:59.115Z","repository":{"id":56907358,"uuid":"2654200","full_name":"doubleencore/DETweetComposeViewController","owner":"doubleencore","description":"The iOS 4 compatible Tweet Sheet.","archived":false,"fork":false,"pushed_at":"2015-11-30T16:53:50.000Z","size":9422,"stargazers_count":316,"open_issues_count":8,"forks_count":70,"subscribers_count":55,"default_branch":"master","last_synced_at":"2024-10-06T06:01:55.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doubleencore.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-26T21:43:03.000Z","updated_at":"2024-01-20T16:56:39.000Z","dependencies_parsed_at":"2022-08-21T03:20:56.535Z","dependency_job_id":null,"html_url":"https://github.com/doubleencore/DETweetComposeViewController","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleencore%2FDETweetComposeViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleencore%2FDETweetComposeViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleencore%2FDETweetComposeViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doubleencore%2FDETweetComposeViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doubleencore","download_url":"https://codeload.github.com/doubleencore/DETweetComposeViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223162813,"owners_count":17098214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:00.877Z","updated_at":"2024-11-05T11:39:50.094Z","avatar_url":"https://github.com/doubleencore.png","language":"Objective-C","readme":"DETweetComposeViewController\n============================\n\nDETweetComposeViewController uses git submodules to pull in the [unoffical-twitter-sdk](https://github.com/doubleencore/unoffical-twitter-sdk). Be sure to run \n```git submodule update --init``` on your DETweetComposeViewController  clone before proceeding.\n\n## What is it?\nDETweetComposeViewController is an iOS 4 compatible version of the TWTweetComposeView controller. Otherwise known as the Tweet Sheet.\n\n## Why did we make it?\nThe iOS 5 TWTweetComposeViewController makes it really simple to integrate Twitter posting into you applications. However we still need to support iOS 4 in many of our applications. Having something that looks and acts like the built in Tweet Sheet allows us to have a consistent user interface across iOS versions.\n\n## What does it look like?\n![DETweetComposeViewController](https://github.com/downloads/doubleencore/DETweetComposeViewController/DETweetComposeViewController.png) ![TWTweetComposeViewController](https://github.com/downloads/doubleencore/DETweetComposeViewController/TWTweetComposeViewController.png)\n\nAs you can see they look very similar.  \n  \n## How do you use it?\n\n1. Add all the files from the DETweetComposeViewController/DETweetComposeViewController folder to your project.\n2. From DETweetComposeViewController/DETweeter/unofficial-twitter-sdk/unoffical-twitter-sdk, add the following to a group in your project named unoffical-twitter-sdk:\n    1. JSON/\n    2. OAuth/\n    3. tclose.png\n    4. ticon.png\n    5. TwitterDialog.h\n    6. TwitterDialog.m\n3. Link your project against the follwoing frameworks:\n    1. Accounts.framework\n    2. Twitter.framework.\n4. Set your Twitter OAuth Consumer Key and Consumer Secret in OAuthConsumerCredentials.h in your project, you will find this file in unoffical-twitter-sdk/OAuth. Don't have an OAuth consumer key and secret? Go to developer.twitter.com to create an app. Make sure your app's Access is set to 'Read and Write' and a Callback URL is defined. Both of these configurations can be found under the Settings of your Twitter app.\n5. You will notice there is an #error in OAuthConsumerCredentials.h to help ensure you remember to add your Twitter OAuth credentials, remember to delete this #error after you have added your OAuth credentials.\n6. Use it almost just like you would a TWTweetComposeViewController\n\n```\n#import \"DETweetComposeViewController.h\"\n...\nDETweetComposeViewController *tcvc = [[[DETweetComposeViewController alloc] init] autorelease];\n[tcvc addImage:[UIImage imageNamed:@\"YawkeyBusinessDog.jpg\"]];\n[tcvc addURL:[NSURL URLWithString:@\"http://www.DoubleEncore.com/\"]];\n[tcvc addURL:[NSURL URLWithString:@\"http://www.apple.com/ios/features.html#twitter\"]];\nself.modalPresentationStyle = UIModalPresentationCurrentContext;\n[self presentModalViewController:tcvc animated:YES];\n```\n\n## What if I don't want to use the unofficial-twitter-sdk?\n\nJust save the necessary OAuth credentils to NSUserDefaults as:\n\n * detwitter_oauth_token\n * detwitter_oauth_token_secret\n * detwitter_oauth_token_authorized\n\nThen call the OAuth ```- (void) loadOAuthContextFromUserDefaults;``` method.\n\n## What's next?\n\nWe have some TODO items in [github Issues](https://github.com/doubleencore/DETweetComposeViewController/issues). Please send us your feature requests, patches and pull requests.\n\n## Credits\n\n1. unofficial-twitter-sdk [lloydsparkes](https://github.com/lloydsparkes)\n2. InnerShadowDrawing [mruegenberg](https://github.com/mruegenberg/objc-utils/tree/master/UIKitAdditions)\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoubleencore%2FDETweetComposeViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoubleencore%2FDETweetComposeViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoubleencore%2FDETweetComposeViewController/lists"}