ios8.2

Retina 4 2x is never used for iPhone 5 simulator in Xcode 6.2 image asset

守給你的承諾、 提交于 2019-12-24 03:51:08
问题 I'm using Device Specific in one of my image sets (image0) and having 3 images for 2x, Retina 4 2x and 3x. iPhone 6 Plus simulator uses the 3x and iPhone 4/4s uses the 2x. The problem is that iPhone 5/5s simulator never uses the Retina 4 2x (green one in the screen shot below) These are the resolutions: 2x: 640 x 960 Retina 4 2x: 640 x 1136 3x: 1242 x 2208 EDIT1 I tried as per the suggestion below to set the image in IB but it still selects the 2x version! 回答1: It's because your project's

iOS 8.2 [NSUserDefaults standardUserDefaults] returning nil

泪湿孤枕 提交于 2019-12-24 03:26:09
问题 I am encountering a strange issue in iOS 8.2 where [NSUserDefaults standardUserDefaults] is returning nil on iPhone. This same logic untouched has worked on all previous releases of iOS. I have a universal app which has two different settings.plist one for iPad and the other for iPhone list as follows; Settings.bundle- -Root.plist -Root~iphone.plist When installed on devices the correct settings pane displays and the user can input the appropriate values for the given fields. Though in my app

Rendering mode set to Template for vector pdf in image catalogue, but UIImageView wont tint the image in a custom cell

喜你入骨 提交于 2019-12-22 04:54:10
问题 I have migrated all my image files to the asset catalogue. All of them are pdf vectors of size 1x. They are set to render as a Template. They show up fine everywhere in size and in color. But there is this one custom TableView Cell from a xib that I has 6 UIImageView s linking to 6 of these images from the catalogue. Somehow they don't respect the tint color, neither default nor custom. Tried changing them programmatically but didn't work either. These same images show up fine in another

How to handle the back button(iOS 8.2) in iphone

做~自己de王妃 提交于 2019-12-12 03:09:37
问题 In my project, I was using some code to handle the back button as follows. NSMutableArray *VCs = [NSMutableArray arrayWithArray: self.navigationController.viewControllers]; if ([[VCs objectAtIndex:[VCs count] - 2] isKindOfClass:[LoginViewController class]]) { [VCs removeObjectAtIndex:[VCs count] - 2]; [VCs removeObjectAtIndex:[VCs count] - 2]; } [self.navigationController setViewControllers: VCs]; In iOS 7 I am getting the desired result. But for iOS version 8.2, the value in the mutable

Push Notification not working in ios 8.3

时间秒杀一切 提交于 2019-12-11 10:40:48
问题 My Push Notification is not working in ios 8.3. I had build the project in xcode 6.0 which support upto ios 8.0. is it the Reason??? 回答1: // This conditions for ios8 notifications... if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)]) { [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)

ios 8.2 and above settings bundle is not showing selected item but Default

爱⌒轻易说出口 提交于 2019-12-10 12:30:03
问题 I am facing a issue with App settings, i am using settings bundle to select the environment, but once selected and going back to app settings its showing again the default one as selected. This is observed only from ios 8.2 and above(Device and simulator). My settings bundle plist looks like below. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>PreferenceSpecifiers<

CloudKit Push Notification, App running on background

我的未来我决定 提交于 2019-12-07 09:48:27
问题 When iOS8.2-app is running in the background, it does not receive any push notification, while if it is running on the foreground, it receives the push notifications fine. Any idea what is going on ? Running on CloudKit Development mode, the subscription is for add,edit,and remove, and using the following didReceiveRemoteNotification : -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult)

CloudKit Push Notification, App running on background

夙愿已清 提交于 2019-12-05 12:45:16
When iOS8.2-app is running in the background, it does not receive any push notification, while if it is running on the foreground, it receives the push notifications fine. Any idea what is going on ? Running on CloudKit Development mode, the subscription is for add,edit,and remove, and using the following didReceiveRemoteNotification : -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { NSLog(@"Push received."); NSDictionary * apsDict = [userInfo objectForKey:@"aps"];

Rendering mode set to Template for vector pdf in image catalogue, but UIImageView wont tint the image in a custom cell

主宰稳场 提交于 2019-12-05 05:29:17
I have migrated all my image files to the asset catalogue. All of them are pdf vectors of size 1x. They are set to render as a Template. They show up fine everywhere in size and in color. But there is this one custom TableView Cell from a xib that I has 6 UIImageView s linking to 6 of these images from the catalogue. Somehow they don't respect the tint color, neither default nor custom. Tried changing them programmatically but didn't work either. These same images show up fine in another tableview with static cells inside the main storyboard. I am not able to isolate the issue. Interestingly,

Sqlite3 query gets really slow under iOS 8.2

对着背影说爱祢 提交于 2019-12-05 01:37:52
问题 I've made an app that works with sqlite database inside the app. Before iOS 8.2 it worked fine, but after update the query method works about 100(!!!) times slower. I tried to find info about this issue but I haven't found anything yet. Is anybody has same experience? Here is my method that worked perfectly until now. Do you see any error or optimalization possibilities inside it? Thanks for your help! - (NSArray *)databaseContentWithQueryString:(NSString *)queryString { NSDate *methodStart =