Fixed header disappear when scrolling down in webview in iOS 11

I’m just writing some code, try with one by one Try with below self.automaticallyAdjustsScrollViewInsets = false Try with below [self.webView.scrollView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever]; Try with below (change your code) header { height: 60px; background-color: @mainColor; color: #ffffff; padding: 10px; text-align: center; position: fixed; width: 100%; z-index: 1; transform: translateZ(0); -moz-transform: translatez(0); -ms-transform: translatez(0); -o-transform: translatez(0); -webkit-transform: translateZ(0); … Read more

Failed to register for BoringSSL log debug updates

UPDATE There’s actually a very convenient way to silence certain logs for a specific simulator: xcrun simctl spawn booted log config –subsystem com.apple.network –category boringssl –mode level:off It is also recommended to silence other common non-important logs as well: xcrun simctl spawn booted log config –subsystem com.apple.CoreBluetooth –mode level:off xcrun simctl spawn booted log config … Read more

What is NSFaceIDUsageDescription – Face ID Usage Description Info.plist key?

Now further explained in the above mentioned forum (by an Apple employee) https://forums.developer.apple.com/message/265156: Face ID requires adding a usage string with the key NSFaceIDUsageDescription (aka Privacy – Face ID Usage Description) to your app’s Info.plist. In the simulator, the Face ID permissions alert will show “This app was designed to use Touch ID and may … Read more

Barcode on swift 4

I figured it out but Apple didn’t make it so obvious. The callback function from the delegate AVCaptureMetadataOutputObjectsDelegate has been renamed and the parameter names are different! So, replace func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [Any]!, from connection: AVCaptureConnection!) to func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) My view controller is now … Read more

iOS 11 large navigation bar title unexpected velocity

I solved the problem with these constraints: NSLayoutConstraint.activate([ scrollView.topAnchor.constraint(equalTo: view.topAnchor), scrollView.leftAnchor.constraint(equalTo: view.leftAnchor), scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor), scrollView.rightAnchor.constraint(equalTo: view.rightAnchor) ]) You also have to set this property on your UIViewController subclass: extendedLayoutIncludesOpaqueBars = YES

How to fix Xcode error: Could not locate device support files on iPhone with Xcode

Answer: Xcode: Could not locate device support files Well, I found non of the answers logged out here aren’t complete and sustainable. So here we go. Most importantly don’t waste your time and internet bandwidth downloading Xcode just to resolve this issue which you can do within few MBs and little bit of OS know-how!!! … Read more