TwitterPlugin (iOS) note

Retested TwitterPlugin (iOS) in iOS 5.1 and Cordova 1.6.1
This commit is contained in:
RandyMcMillan
2012-04-24 01:33:16 -04:00
parent 7cb0efd998
commit ba91bdaf0c

View File

@@ -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: