iOS 8 Today Widget - SLComposeViewController not displaying properly

iPwnTech

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.

Image for reference:

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;
    }

}
Stephen

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

iOS 8 today widget - UIAlertView

Today Extension Not Displaying Properly

Core Data iOS 8 Today Widget issue

iOS 8 Today widget alignment issue

Today Widget has no content on iOS 8 device

How to rename an iOS 8 Today Widget?

What is the purpose of widgetPerformUpdateWithCompletionHandler in iOS 8 Today Widget?

iOS app crashes when displaying SLComposeViewController

how to localize iOS 8 today extensions widget and also the widget name

UIAlertView and UIActionSheet not displaying properly in iOS 8

iOS8 Today Widget - Change title and add stuff to default

iOS 8 Today Widget shows up blank for a few seconds

iOS8 today view widget not showing UITableViewController

iOS 8 Beta Today extension widget not showing in a Swift app?

Get string from Parse.com iOS 8 Today Widget

How to create a Today widget programmatically without storyboard on iOS8?

iOS 8 Today Widget fit height of UITableView using Auto Layout

iOS 8 today widget stops working after a while

Accessing the PFUser currentUser from an iOS8 Today Widget

ios8 Core Data iCloud Today Widget not synchronizing

Widget not displaying in android but displaying in ios

SLComposeViewController - "Attempt to present" errors in iOS 8

iOS 10 Today Widget Buttons

Today widget in iOS 10 is not expanding

iOS Today Widget - Determine if active

UIDatePicker not displaying properly in iOS 9

Posting via SLComposeViewController on facebook and twitter in IOS-8

iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach

MFMailComposeViewController not displaying in iOS 8