I've created an extension, in fact a Today Widget, using Xcode 6 and run it on my iOS 8 beta device (I am a registered iOS developer).
However, being new to development, I've encountered this issue with the SLComposeViewController
being 'stuck' inside its view (shown below), deeming the user to be unable to interact with it and not be able to consequently post a tweet.
Is there any way to fix this and bring the SLComposeViewController
to the front, in front of the Notification Centre pane? Any help would be appreciated.
Edit: (yay, fixed that "Hello World" text)
2nd Edit: Here's my SLComposeViewController
code:
- (IBAction)TwitterShare:(id)sender; {
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter])
{
SLComposeViewController *tweetSheet = [SLComposeViewController
composeViewControllerForServiceType:SLServiceTypeTwitter];
[self presentViewController:tweetSheet animated:YES completion:nil];
}
else
{
UIAlertView *twitterAlert = [[UIAlertView alloc] initWithTitle:@"Uh oh!" message:@"Ensure you have setup a valid Twitter account and/or you have allowed access for Twitter in this application." delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil, nil];
[twitterAlert show];
twitterAlert = nil;
}
}
According to Apple's documentation SLComposeViewController is not allowed to be shown in NC. They want anything that requires keyboard entry to happen in-app.