ios10

NSManagedObject subclasses duplicate declaration

浪尽此生 提交于 2019-12-20 04:09:09
问题 So, when my data model is ready, I tried to generate the subclasses when my data model file is open: Editor -> Create NSManaged Object Subclasses Okay, two files are generated, one is class declaration, the other is the property. However, I was immediately prompted that I did a redeclaration of a class that already exists. This is where the original generated files are: previously generated files My question is obvious: When were those two files generated? What to do if I want those files in

iOS 10 Request Notification Permission fires twice

一曲冷凌霜 提交于 2019-12-20 04:08:08
问题 When I launch my app on iOS 10 , I get the request notification permission twice. The first one briefly appears and disappears immediately without allowing me to do any actions, then I got the second popup with a normal behaviour waiting for "allow" or "deny" from the user. Here is my code that worked well before iOS 10 . In the method didFinishLaunchingWithOptions from the AppDelegate : if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { #ifdef __IPHONE_8_0

iOS 10.1.1 popup saying “Application May Slow Down Your iPhone”

拟墨画扇 提交于 2019-12-20 02:56:11
问题 When I build and run my app through Xcode on my real device I get a popup saying: AppName May Slow Down Your iPhone The developer of this app needs to update it to improve its compatibility. I dont see any memory issues, and I never had any problem with my app crashing. So what is causing this scary message? 回答1: This isn't a memory or a crash issue - it's Apple asking developers to update their apps with only 32-bit support with 64-bit support. You must build a 64-bit binary with your

Is it allowed to let the alternate app icon to be dynamic?

こ雲淡風輕ζ 提交于 2019-12-20 02:52:12
问题 Since iOS 10.3 has been released, Apple added a new feature which allows us to change the app icon dynamically, by using setAlternateIconName(_:completionHandler:) method. So far, as mentioned in the method documentation, we have to mention the name(s) of the alternate app icon(s) in the project .plist file, assigned to CFBundlePrimaryIcon key. Actually, when working with static icons (icons that have been added directly to the app main bundle) it works as expected without any problems: My

Apple Pay sandbox tester not able to login into device iOS 10

房东的猫 提交于 2019-12-20 02:10:58
问题 I'm not able to login into my new iPhone 6s(iOS 10.0.1) with this sandbox account for testing apple way. While able to login into web icloud, itunes and tested on my old iPhone 6+(iOS 10 beta 5). Everytime try to login into iPhone 6s(iOS 10.0.1) I got this error message. iTunes account creation not allowed This apple ID cannot be used with the iTunes Stores at this time. Please try again. Help me what to do, is this bug from Apple side 回答1: I have tried this many time. And getting same thing

Xcode Hide white status bar ios 10

孤人 提交于 2019-12-19 17:32:59
问题 I want white status bar in my app. For this I set View controller-based status bar appearance to NO and Status bar style to UIStatusBarStyleLightContent . But now I need to hide status bar in some view controllers. To hide it I have to set View controller-based status bar appearance to YES and add - (BOOL)prefersStatusBarHidden {return YES;} . But status bar is black now. It's black when View controller-based status bar appearance is YES and white if NO . So the question is, how to set white

FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: completion not called on app first run

风格不统一 提交于 2019-12-19 11:17:07
问题 I have a Facebook login-enabled app and for some reason FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: is not called on the very first run of my app after installation. If I just kill my app (even without trying to login to Facebook or do anything: trying to login on first open or not doesn't change anything) and open it again, it works perfectly. Why? (I've checked the view controller passed to the method is not nil and is the current view controller) Here is my

FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: completion not called on app first run

孤人 提交于 2019-12-19 11:17:01
问题 I have a Facebook login-enabled app and for some reason FBSDKLoginManager logInWithReadPermissions: fromViewController: handler: is not called on the very first run of my app after installation. If I just kill my app (even without trying to login to Facebook or do anything: trying to login on first open or not doesn't change anything) and open it again, it works perfectly. Why? (I've checked the view controller passed to the method is not nil and is the current view controller) Here is my

Display image in notification bar with remote notification(Rich media push notification) in iOS 10

我的未来我决定 提交于 2019-12-19 08:52:05
问题 I have integrated APNS and want to display image in remote notification like below; I have used below code with reference link; AppDelegate.h #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate> AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self registerForRemoteNotification]; UIStoryboard *storyboard = [UIStoryboard

Push Notification is not working on iOS 10

假如想象 提交于 2019-12-19 03:08:10
问题 After the installing the new update of iOS 10, push notifications are not working, while the same implementation of code is working for iOS 9. Is there any new thing for iOS 10 for push notification. As, I am not able figure it out. Also, is it necessary to turn on push notification under capabilities. 回答1: Need some changes for iOS 10 with xCode 8 GM You need to implement UserNotification.framework and their delegate methods to get work of push notifications and in capabilities needs to