ios7

UIRefreshControl freezes when temporarily showing other tab (iOS 7)

此生再无相见时 提交于 2019-12-10 16:37:31
问题 I have the following on one of my tabs: - (void)viewDidLoad { [super viewDidLoad]; self.clearsSelectionOnViewWillAppear = YES; UIRefreshControl* refreshControl = [[UIRefreshControl alloc] init]; refreshControl.attributedTitle = [[NSAttributedString alloc] initWithString:@"Sync"]; [refreshControl addTarget:self action:@selector(refresh:) forControlEvents:UIControlEventValueChanged]; self.refreshControl = refreshControl; //### Workaround: http://stackoverflow.com/a/19126113/1971013 dispatch

Glitch with UIActivityViewController

扶醉桌前 提交于 2019-12-10 16:10:18
问题 Is it just me or in iOS 7 can you not change the text colour of any shared application? For example, if you open up the Mail or iMessage apps does the colour go back to default blue or is there a way to change this? I haven't been able to. Here are some screen shots. Notice the blue font colour when choosing the UIActivityViewController shared application: Here is what it looks like and what I want it to look like when opening mail from MFMailComposerViewController: Here's what it looks like

iOS7 tint color only works after presenting and dismissing another ViewController

冷暖自知 提交于 2019-12-10 16:01:20
问题 I'm having a very odd problem with tint color in iOS7. When the ViewController that I'm having trouble with first loads, all of the tint is a light gray color, as if everything is inactive or behind a UIAlertView that has dimmed the screen. The buttons are still active and work just fine, but they are all gray. (I have the tint color set to orange, more on that in a bit). Here's the odd part. If I present, and then immediately dismiss another ViewController, all of the orange tint appears and

Google map's turn by turn gps navigation for ios development

别等时光非礼了梦想. 提交于 2019-12-10 15:40:12
问题 My app required to include turn by turn gps navigation. Can anybody tell how to integrate google map for turn by turn gps navigation. I can found it in android development. But i can't found navigation from google map's iOS development documentation. https://developers.google.com/maps/documentation/ios/intro Please anybody help to resolve my problem. 回答1: The google map ios Sdk does not have any turn-by-turn navigation api or navigation api's,yet. Please refer link https://developers.google

Spritekit: First texture draw slow (preloaded)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 15:39:16
问题 I'm having a performance issue regarding Apple Spritekit Framework. I use the method preloadTextureAtlases:withCompletionHandler: of SKTextureAtlas to make sure all my textures are loaded before the game really starts. Yet when the first texture of this atlas (whatever it is) is added to the scene as a child I got a small lag, like if the texture wasn't loaded. It only happens the first time . I tried real hard to debug this and to find the reason but I couldn't find it. Looking with

UIImagePickerController in Storyboard: UIImagePickerControllerSourceTypePhotoLibrary displays black screen

徘徊边缘 提交于 2019-12-10 14:49:46
问题 I have a storyboard where I created a UINavigationController instance and set its custom class to UIImagePickerController . If I set imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera in prepareForSegue , everything works fine. If I set imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary in prepareForSegue , I get a mostly black screen with an empty gray bar on top that I can't dismiss: [future location of screenshot - I cannot post images] I can work around

UIBarButtonItem changes font after being pressed, specified in appearance proxy

大兔子大兔子 提交于 2019-12-10 14:37:44
问题 I set up UIBarButtonItem title font through appearance proxy in AppDelegate: [[UIBarButtonItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWithName:@"Segoe Print" size: 14.0], UITextAttributeFont, DEF_TITLE_COLOR,UITextAttributeTextColor, [UIColor colorWithRed:100/255 green:128/255 blue:43/255 alpha:0.4], UITextAttributeTextShadowColor, [NSValue valueWithUIOffset:UIOffsetMake(0, 1)], UITextAttributeTextShadowOffset, nil] forState

Push animation without shadows and blackouts

一笑奈何 提交于 2019-12-10 14:25:46
问题 I have a simple iOS NavigationController based application. Two UICollectionViews , one after another. If element on "first collection" was clicked, the "second collection" will be opened. Quite simple. Important note: "Both UICollectionViews have transparent background. General background color for navigationController is used. (Inherited class from UINavigationController ) " The problem: If understood it right, push method of NavigationController works according to algorithm: Pushing view

iOS - Refresh Control - “Attempting to change the refresh control while it is not idle is strongly discouraged and probably won't work properly.”

烂漫一生 提交于 2019-12-10 14:14:38
问题 I cannot find many references to this warning anywhere. I have two view controllers that offer pull-to-refresh control. One is fine. The other produces the warning above. I copied the code from one to the other. The code is as follows (PFUser refers to Parse.com): [super viewDidAppear:animated]; if ([PFUser currentUser]) { NSLog(@"who's the user: %@", [PFUser currentUser]); UIRefreshControl *refreshTable = [[UIRefreshControl alloc] init]; refreshTable.attributedTitle = [[NSAttributedString

Swift 3.0 or Swift 2.3 minimum system version requirement and is it deployed in iOS 7 [duplicate]

怎甘沉沦 提交于 2019-12-10 13:53:59
问题 This question already has answers here : Swift 3 iOS compatibility (2 answers) Closed 3 years ago . Swift 3.0 is coming up with Xcode 8, what is the minimum iOS / OS X system version required to use Swift 3.0? Is that swift 3.0 support iOS 7 ? 回答1: Minimum OS X to run Xcode 8 which is compatible with Swift 3 is OS X 10.11.4 (OS X EL Capitan) And I think Swift 3 does not support iOS 7 As you have minimum target in Xcode 8 is iOS 8.0 And as per App Store support measurement iOS 8 (11%) and iOS