ios11

How to customize the color of the navigation bar in qlpreviewcontroller

天大地大妈咪最大 提交于 2019-12-08 16:23:21
问题 Can I customize the color of the navigation bar in the QlPreviewController controller? I have tried following [[UINavigationBar appearanceWhenContainedIn: [QLPreviewController class], nil] setBarTintColor: [UIColor redColor]]; but it does not work. Thanks. 回答1: Yeah, there is a bug with barTintColor on QLPreviewController for iOS 11 if you are showing it via presentViewController: animated: Here's my solution, use setBackgroundImage: with 1x1 image instead of setBarTintColor: [

iPhone X: Incorrect launch-screen orientation used

ぃ、小莉子 提交于 2019-12-08 15:41:06
问题 I am testing image launch-screens on the iPhone X and ran into a strange behavior. So I'd like to request some feedback before opening a radar: I created a portrait and landscape launch-screen with the dimensions 1125 x 2436 Pixel (portrait) and 2436 x 1125 Pixel (landscape). Then I add them to the asset catalog and they are picked up correctly: So far so good. Then I run the app on the iPhone X Simulator (I've reset the app before to ensure nothing is cached) and the (stretched) landscape

will iOS 11 support an app which is both 64bit and 32 bit compatible?

女生的网名这么多〃 提交于 2019-12-08 14:21:49
问题 Our apps are both 32 bit and 64 bit compatible. With iOS 11 being released will my app run fine on 64 bit devices as iOS 11 does not support 32 bit apps. What is the best suggestion, to remove 32 bit support and just have 64 bit to avoid any issues on iOS 11 or to have both? 回答1: If your app support both 64 bits and 32bis it will work on ios 11, if you want to change support to only 64 bits there is the link: apple developer documentation 回答2: Your app will work fine on iOS 11 as long as the

iOS 11 - Location update not received after adding delegate

天大地大妈咪最大 提交于 2019-12-08 11:48:23
问题 I have been having trouble with location services in iOS 11 for both "Allow while Use" and "Always Allow". Works without issue in iOS < 11. Followed this thread in trying to fix but still doesn't work. What am I missing? Thank you in advance. I have UITabViewController in my app and a UINavigationController inside each tab. I have a singleton LocationManager class. I'm setting my UINavigationController's RootViewController as delegate the ViewController's viewWillAppear to receive location

Swift unrecognized selector of ObjC Category

雨燕双飞 提交于 2019-12-08 08:54:10
问题 I get a SwiftDeferredNSDictionaryVs11AnyHashableP__ objectForKeyNotNull: 2017-07-14 12:52:58.138873+0200 Adding-Content-to-Apple-Music[1954:511529] -[_TtGCs26_SwiftDeferredNSDictionaryVs11AnyHashableP__ objectForKeyNotNull:]: unrecognized selector sent to instance 0x1c02239c0 for a object defined in a swift Dictionary let apiOptions:Dictionary<String,Any> = [ "options.push.enabled": false, "options.debuglevel": 4, ] that I pass to a Objective-C library, that does like if ([options

Theos iOS 11 system() function

亡梦爱人 提交于 2019-12-08 07:52:34
问题 I updated my Phone to IOS 11 and the system() function is not supported anymore. I want to shutdown after pressing a button, how can I do that? Respring works fine with posix_spawn. My old code is: (void)shutdownButtonPressed{ system("shutdown"); } 回答1: From the shutdown source, it would seem the proper way of doing this is: #define RB_HALT 0x08 extern void* reboot3(int how); (void)shutdownButtonPressed { // for a real reboot, just pass 0 instead of RB_HALT reboot3(RB_HALT); } 来源: https:/

Swift 4 in Xcode 9 - How to lightweight Core Data migration?

心不动则不痛 提交于 2019-12-08 07:51:31
问题 My Core Data will update one more attribute and , to avoid crashing , I added a new model version as first, and furthermore: 👇👇👇 The most of the keys about this issue is that change : coordinator!.addPersistentStore(ofType: NSSQLiteStoreType, configurationName: nil, at: url, options: nil) options: nil in the code to options:[NSMigratePersistentStoresAutomaticallyOption:true, NSInferMappingModelAutomaticallyOption: true] But In my appdelegate.swift , I can’t find any

Limit the height of UISearchBar in iOS 11

与世无争的帅哥 提交于 2019-12-08 07:07:02
问题 In iOS 11 height of UISearch bar has increased , but I want the same height as in iOS 10. How to do that ? I am using below code to create the searchController. searchController = UIUtils.searchControllerInitialize(self) searchController.searchResultsUpdater = self searchController.delegate = self searchController.searchBar.delegate = self viewTemp = UIView(frame: CGRect(x: 0.0, y: 64.0,width: UIScreen.main.bounds.size.width , height: 44)) viewTemp.addSubview(self.searchController.searchBar)

Delaying the model and table view change in commitEditingStyle

给你一囗甜甜゛ 提交于 2019-12-08 05:55:39
问题 Does the model change and the row animation have to be started directly from commitEditingStyle or can it be done in a later run loop iteration? I am asking because it appears to work on iOS 10, but on iOS 11 it breaks at least the delete animation. Is it simply a bug in iOS 11 or is it a bad idea in general? Is there a better way to trigger an asynchronous delete operation and animate the table view change on completion? The first picture shows how it breaks on iOS 11 (The delete button

Cannot compose tweets with Twitter Kit 3

这一生的挚爱 提交于 2019-12-08 05:20:35
问题 I followed instruction from https://dev.twitter.com/twitterkit/ios/compose-tweets to compose tweets via my Object C app for iOS 11 // Objective-C TWTRComposer *composer = [[TWTRComposer alloc] init]; [composer setText:@"just setting up my Twitter Kit"]; [composer setImage:[UIImage imageNamed:@"twitterkit"]]; // Called from a UIViewController [composer showFromViewController:self completion:^(TWTRComposerResult result) { if (result == TWTRComposerResultCancelled) { NSLog(@"Tweet composition