mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
TwitterPlugin (iOS) note
Retested TwitterPlugin (iOS) in iOS 5.1 and Cordova 1.6.1
This commit is contained in:
@@ -28,10 +28,7 @@
|
||||
[tweetViewController release];
|
||||
}
|
||||
|
||||
if (IsAtLeastiOSVersion(@"3.0")) {
|
||||
NSString *version = @"5.1";
|
||||
NSLog(@"The TwitterPlugin requires iOS %@ or above due to is dependency on Twitter.framework.", version); // @RandyMcMillan
|
||||
}
|
||||
|
||||
|
||||
[super writeJavascript:[[CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt:twitterSDKAvailable ? 1 : 0] toSuccessCallbackString:callbackId]];
|
||||
}
|
||||
@@ -93,6 +90,14 @@
|
||||
messageAsString:errorMessage] toErrorCallbackString:callbackId]];
|
||||
}
|
||||
else{
|
||||
|
||||
#if TARGET_IPHONE_SIMULATOR
|
||||
NSString *simWarning = @"Test TwitterPlugin on Real Hardware.";
|
||||
//EXC_BAD_ACCESS occurs on simulator unable to reproduce on real device
|
||||
//running iOS 5.1 and Cordova 1.6.1
|
||||
NSLog(@"%@",simWarning);
|
||||
#endif
|
||||
|
||||
[tweetViewController setCompletionHandler:^(TWTweetComposeViewControllerResult result) {
|
||||
switch (result) {
|
||||
case TWTweetComposeViewControllerResultDone:
|
||||
|
||||
Reference in New Issue
Block a user