iOS 11 navigationItem.titleView Width Not Set

I figured it out. I had to override the intrinsicContentSize getter for the view, and the text field. I set the width to CGFloat.greatestFiniteMagnitude so it’ll always be as wide as the screen. Update: Since I’ve spent couple of hours on this issue, hope that some else will catch up faster by having all things … Read more

iOS11 WKWebview crash due to NSInvalidUnarchiveOperationException

NSInvalidUnarchiveOperationException when loading the nib / storyboard means there an object in the nib / storyboard that the runtime doesn’t understand. This is because the framework that defines that kind of object is missing. So, in this case, you need to link your app target against the WebKit framework so that the app understands what … Read more

Localizable.strings – The data couldn’t be read because it isn’t in the correct format

Use plutil from the Terminal: you have to run it for each version of the localizable file. E.g cd into your project root cd eb.lproj – you can replace this with any localisation you are working with. plutil -lint Localizable.strings When you run step 3, you will either be shown an error, telling you what … Read more

UISearchBar increases navigation bar height in iOS 11

I got black line under NavigationBar with SearchBar in iOS 11 in two cases: when i pushed another ViewControllers from ViewController with UISearchBar when i dismissed ViewController with UISearchBar with “drag right to dismiss” My solution was: adding this code to my ViewController with UISearchBar: -(void)viewWillDisappear:(BOOL)animated{ [super viewWillDisappear:animated]; [self.navigationController.view setNeedsLayout]; // force update layout [self.navigationController.view … Read more

Location Services not working in iOS 11

It would appear that apple have added yet another privacy feature. The user is now able to override our requestAlwaysAuthorization and downgrade it to requestWhenInUseAuthorization – Which means as a developer we now have to supply both descriptions in the Info.plist I found that they have added a new key NSLocationAlwaysAndWhenInUseUsageDescription /* * Either the … Read more

iOS 11: ATS (App Transport Security) no longer accepts custom anchor certs?

Some time ago macOS started enforcing a requirement that CA certificates can’t also be used as end-entity (eg webserver) certificates. Is it possible that iOS added this requirement between 10 and 11? If so, the workaround is simple: you create your self-signed CA certificate, and use that certificate to issue the webserver certificate. The CA … Read more