ios11

Why page Push animation Tabbar moving up in the iPhone X

给你一囗甜甜゛ 提交于 2019-12-17 10:22:48
问题 I build a app Demo, use hidesBottomBarWhenPushed hide Tabbar in Push Animation. But, When I click Jump Button Tabbar move up!? like this: 回答1: Answer provided by VoidLess fixes TabBar problems only partially. It fixes layout problems within tabbar, but if you use viewcontroller that hides tabbar, the tabbar is rendered incorrectly during animations (to reproduce it is best 2 have 2 segues - one modal and one push. If you alternate the segues, you can see tabbar being rendered out of place).

Xcode 9 “iPhone is busy: Preparing debugger support for iPhone”

*爱你&永不变心* 提交于 2019-12-17 10:22:11
问题 I'm looking for more information on this message. Xcode 9 seems to be hanging for a couple minutes already. How can I tell Xcode 9 to quickly recognize my previously used device updated to iOS 11? .Alex’s iPhone is busy: Preparing debugger support for .Alex’s iPhone Xcode will continue when .Alex’s iPhone is finished. 回答1: There are multiple solutions for this: Solution 1: Patiently wait for 10 to 15 minutes. Have a tea or roam around ;-) Solution 2: Disconnect device from the system. Restart

NEHotspotHelper.register not received call back iOS11

左心房为你撑大大i 提交于 2019-12-17 10:09:10
问题 I am working on NEHotspotHelper and trying to register but not receiving call back. Firstly, I enabled Capability : Network Extensions Then added this following code, let options: [String: NSObject] = [kNEHotspotHelperOptionDisplayName : "ABC" as NSObject] let queue: DispatchQueue = DispatchQueue(label: "com.ABC", attributes: DispatchQueue.Attributes.concurrent) NSLog("Started wifi scanning.") NEHotspotHelper.register(options: options, queue: queue) { (cmd: NEHotspotHelperCommand) in NSLog(

iOS 11 Floating TableView Header

自作多情 提交于 2019-12-17 09:58:56
问题 Have an app going with multiple sections, a few rows per section when "expanded", none when "collapsed". Each section has a section header, was reusing them using a subclass of UITableViewHeaderFooterView etc. So far so good. Then in iOS 11: I've used the visual debugger, and confirmed it's my section header floating. All the rows beneath the header are displaying correctly, the other headers show fine. In an effort to restore sanity, I threw out all of the reuse logic for the header and just

iOS11 swift silent push (background fetch, didReceiveRemoteNotification) is not working anymore

岁酱吖の 提交于 2019-12-17 09:42:15
问题 I was hoping that the iOS11 release will fix the silent push issue, which was in the latest betas and GM version of iOS. Currently I'm struggling to understand, why I don't receive any silent push messages, which should actually wake up my app to perform some needed tasks in the background. In iOS 10 I just use the background fetch capability and implemented the 'wake-up-code' in my AppDelegate like the code below. In iOS 11 the registering code is still working fine and my backend is also

Schedule local notification swift4

安稳与你 提交于 2019-12-14 04:05:56
问题 I've made a local notification with swift4 every day every at 17.00. and I want the notification to not show up on holidays (Saturday, Sunday). How can I do that? Please help me. It's my coding: // schedule notification every day var dateComponents = DateComponents () dateComponents.hour = 17 dateComponents.minute = 00 dateComponents.day = 7 let trigger = UNCalendarNotificationTrigger (dateMatching: dateComponents, repeats: true) let request = UNNotificationRequest.init (identifier: "Everyday

How to add pagination to PHAsset fetching from Photos Framework?

前提是你 提交于 2019-12-14 03:59:18
问题 I am trying to get all the photos from cameraRoll using Photos framework but its taking a lot of time to fetch all the photos from cameraRoll. Is their anyway to add pagination to it ? so i can fetch while scrolling. var images = [UIImage]() var assets = [PHAsset]() fileprivate func assetsFetchOptions() -> PHFetchOptions { let fetchOptions = PHFetchOptions() //fetchOptions.fetchLimit = 40 //uncomment to limit photo let sortDescriptor = NSSortDescriptor(key: "creationDate", ascending: false)

iOS 11 only crash issue - when I tap a tab bar App is crashing

此生再无相见时 提交于 2019-12-14 03:29:01
问题 I am getting following crash error when I tap a particular tab bar only from hometabviewcontroller. This Happens only in iOS 11. Please help me to solve this issue. 2017-10-23 16:48:57.000890+0400 FixtrProvider[2520:910402] desc: -[UIView refreshControl]: unrecognized selector sent to instance 0x10af090d0 2017-10-23 16:48:57.001223+0400 FixtrProvider[2520:910402] name: NSInvalidArgumentException 2017-10-23 16:48:57.001308+0400 FixtrProvider[2520:910402] user info: (null) 2017-10-23 16:48:57

password autofill quicktype bar in ios 11

只谈情不闲聊 提交于 2019-12-14 00:19:32
问题 In ios 11 a new feature is introduced: Password Autofill for app. This feature allows users to use their saved password in their apps directly from the keyboard quicktype bar. https://techcrunch.com/2017/06/08/ios-11s-new-password-autofill-for-apps-wont-work-with-or-replace-your-favorite-password-manager/ https://code.tutsplus.com/articles/faster-logins-with-password-autofill-in-ios-11--cms-29096 https://developer.apple.com/videos/play/wwdc2017/206/ But the problem is when I use

How to disable smart quotes for textarea fields in the browser?

会有一股神秘感。 提交于 2019-12-13 15:31:05
问题 I have a application that runs in the browser that compares strings. String compares with quotes fail using iOS11 because it is defaulting to smart quotes being on. can’t does not equal can't I know smart quotes can be disabled under Setting for the whole device but I would like to handle it at the textarea level. I thought I would be able to catch the smart quote on the keypress event, but iOS is making the switch later and under the covers. textareaText is the text in my textarea field 39