ios11

Status bar Light content doesnot appear in Navigation Controller using Split view controller

自古美人都是妖i 提交于 2020-01-07 05:01:27
问题 When adding status bar as light content. its appearing fine in login screen. it changes to white in login screen. after successful login I have an split view and navigation controller. I have added the code but still it shows black. 1) added below line in view contoller. override var preferredStatusBarStyle: UIStatusBarStyle { return .lightContent } 2) info.plist View controller-based status bar appearance -> NO 3) then came across this line and added this one also. controller

Ios 11- User local notification wich repeat every x minutes

安稳与你 提交于 2020-01-06 05:05:13
问题 In iOS 11, How can I implement a local notification which repeats every x minutes? The repeating interval will be selected from the user. So for example let's say that a user choose to set a notification which will trigger tomorrow at 9:00 AM and from there it triggers every 2 days (or two weeks or 6 months or 10 minutes) var repeatInterval = Bool() trigger = UNCalendarNotificationTrigger(dateMatching: triggerDate, repeats: repeatInterval) //Schedule the Notification let identifier =

How to understand if device screen is being recorded in IOS 11

半城伤御伤魂 提交于 2020-01-04 14:11:26
问题 I have an application that it has copyrighted content. I don't want users to record it. If they start recording screen I want my app to catch this. What is the function to catch if the screen is being recorded? I don't want to prevent, I want to understand and catch it. Note: Some answers indicate solutions including AirPlay and Mirroring. What I want is to only catch screen recording either started before or during app. I want to allow users to use AirPlay and Mirroring. 回答1: You can check

Custom Nav Title offset ios 11

a 夏天 提交于 2020-01-04 09:38:32
问题 I have a custom navigation item title that is simply two labels, one on top of the other, loaded from a .xib file. It's loaded by calling this: class Utilities { /// Title and subtitle format custom title in Navigation bar. Top and bottom text are centered on one another. /// /// - Parameters: /// - navigationItem: The receiving controller's navigation item. /// - titleText: Top text to be displayed a little larger and more bold. /// - subtitleText: Bottom text to be displayed a little

GoogleSignIn - Always return “The user canceled the sign-in flow.” in IOS 11

不打扰是莪最后的温柔 提交于 2020-01-04 09:22:27
问题 I try to use GoogleSignIn in my project, but I have problem when call GIDSignIn.sharedInstance().signIn() I received warning below: [Warning] Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<SFAuthenticationViewController: 0x7fccba008c00>) And in "GIDSignInDelegate", always had error "The user canceled the sign-in flow." func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error?) {}

Xcode 9, iOS 10 issue with Assets

ⅰ亾dé卋堺 提交于 2020-01-03 13:05:53
问题 I'm having a problem with assets and Xcode 9 beta running on devices with iOS 10. It doesn't upload any image from assets, so on the phone I can't see any asset! If I load images in the storyboard, it just doesn't show any image on the phone (but it shows in the storyboard), if I do something: UIImage(named:"imageName")! It crashes with log message: *** Assertion failure in -[_CUIThemePixelRendition _initWithCSIHeader:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreUI/CoreUI-428.6

Xcode 9, iOS 10 issue with Assets

≯℡__Kan透↙ 提交于 2020-01-03 13:04:34
问题 I'm having a problem with assets and Xcode 9 beta running on devices with iOS 10. It doesn't upload any image from assets, so on the phone I can't see any asset! If I load images in the storyboard, it just doesn't show any image on the phone (but it shows in the storyboard), if I do something: UIImage(named:"imageName")! It crashes with log message: *** Assertion failure in -[_CUIThemePixelRendition _initWithCSIHeader:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreUI/CoreUI-428.6

How to generate .ipa from .app file in Xcode 9

夙愿已清 提交于 2020-01-03 08:49:11
问题 I am using Xcode 9. I did archive the build and got in to archive window/organiser window. From there we usually export the build. But due to some reason I cant do that. On the prior version of Xcode, we can get into package contents and generate .ipa from .app with the help of iTunes. But now they have removed that option. Can someone help me to generate .ipa from the .app file that we have generated? 回答1: The earlier way of dragging and dropping the app file to iTunes does not work anymore.

iOS 11 Facebook SignIn is showing an initial system alert

懵懂的女人 提交于 2020-01-02 09:51:34
问题 Preparing an app for iOS 11, I noticed there is a system alert showing up every time the user click on the "Facebook login" button. Does somebody know how to prevent this alert from appearing?. Now Social Networks integrations have been removed from the system and together with the Safari View Controller cookies storage changes (to not be shared) it sounds Apple has also added this extra alert to the sign up - sign in flow whenever you try to connect with Facebook. Has some body experienced

Failed to automatically update constraints

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 01:59:09
问题 I am getting the Failure to automatically update constraints error when trying to use the auto layout to Add, Reset, or Update any restraints on any viewController after updating to xCode 9. Any ideas? I have already cleaned and restarted my Mac. Still have not found a solution for this. I narrowed it down to any viewController with a collectionView inside it. Any ideas? 回答1: I got also this error, when I tried to update/add etc. my constraints error image I use Xcode Version 9.0 (9A235) and