ios11

HTML5 video tag on IOS 11

陌路散爱 提交于 2019-12-12 16:11:54
问题 I have working code for a video element within my site thats fully functioning on ios 9/10 and all the normal browsers (chrome/ff/ie) etc. I've noticed that since the ios 11 update the videos no longer play or even work at all. They appear as a blank box with the controls but pressing play does nothing and opening the video full screen does nothing. Here is my relatively simple code <video playsinline onclick="play()" controls autoplay controlsList="nodownload"> <source src="assets/images

How to turn off adjusting large titles by UITableView in iOS 11?

浪尽此生 提交于 2019-12-12 12:31:35
问题 There's this large titles feature in iOS 11 that shows large title when the UITableViewController 's table is scrolled to top, and gets collapsed to standard small title when the user scrolls the table away from top. This is standard behavior. I need the navigation controller to behave a bit differently - I need to always show the large title. How to achieve this? Following code does not help, it still collapses when scrolled. navigationController?.navigationBar.prefersLargeTitles = true

Share sheet - exclude options which are not provided as Type Properties in UIActivityType

匆匆过客 提交于 2019-12-12 12:21:15
问题 I want to exclude Add to iCloud Drive, Add to Reading List, Save to Files & Print from share sheet. I could exclude Add to Reading List and Print options using following code. Because these type properties have been provided. activityViewController.excludedActivityTypes = [ UIActivityType.print, UIActivityType.addToReadingList ] After with when I search google I found a way to remove options which are not included in type properties as follows (Ex: Add to iCloud drive) UIActivityType(rawValue

Change orientation programmatically with button - iOS

流过昼夜 提交于 2019-12-12 10:42:49
问题 I have a view controller and I would like to have the following experience. Inside the view controller i got a button which force rotate the orientation to landscape right. In Deployment Info - Device Orientation i have enabled "Landscape Right" and "Portrait". I want to mention that in my device i have enabled the "Portrait Orientation Lock" that's why i want a button to rotate the orientation programmatically with the following code. let rotateButton: UIButton = { let btn = UIButton(type:

iOS11 location update after getting killed by user

穿精又带淫゛_ 提交于 2019-12-12 10:09:17
问题 I'm implementing a non VOIP app in iOS 11. As per the nature of my App, I've implemented the startMonitoringSignificantLocationChanges(). All the implementation went well and it is working now. while terminating the app I'm calling startOrReStartSignificantLocationUpdate() and I'm restarting significantlocationupdate in didFinishLaunchingWithOptions also I'm updating location in server in didUpdateLocations event Location updates is reflected on my server when the App is in foreground or

SDK compiled with xcode 9 does not work fine in xcode 8

混江龙づ霸主 提交于 2019-12-12 09:53:20
问题 I've an SDK that I built with Xcode-9-Beta. However, I'm trying to use this framework in a project that's running Xcode 8.3.3. However, I get a build error which says, ld framework not found "FileProvider" for architecture x86_64 Now, this FileProvider has been introduced in iOS-11 and I'm not using it anywhere in the SDK code. What could be the possible error. Please comment if you need further data around this. 回答1: FileProvide framework is only available in Xcode 9. You need to download

Migrating a project using autoresizing masks for iPhone X

女生的网名这么多〃 提交于 2019-12-12 08:59:09
问题 We have some legacy projects that are still using Autoresizing masks, and everything was working fine until iOS 11 and iPhone X. With the introduction of safe area layout guides, what's the best solution to support iPhone X? We can convert all interfaces with autoresizing masks to use auto-layouts. This appears to be a significant effort, considering views are being dynamically added and adjusted. We keep using autoresizing masks but adjust the interfaces to add inset margins for iPhone X and

Creating Gif Image Color Maps in iOS 11

不羁岁月 提交于 2019-12-12 08:26:38
问题 I recently was having an issue when creating a Gif where if it got too big colors went missing. However thanks to help from SO someone was able to help me find a work around and create my own color map. Previous Question here...iOS Colors Incorrect When Saving Animated Gif This worked great up until iOS 11. I can't find anything in the docs that changed and would make this no longer work. What I have found is if I remove kCGImagePropertyGIFImageColorMap A gif is generated but it has the

UIRefreshControl() in iOS 11 Glitchy effect

六月ゝ 毕业季﹏ 提交于 2019-12-12 08:24:26
问题 Every time I pull to refresh the TableView, the UIRefreshControl appears to be glitchy. Below is the code I am using. Any Ideas? In AppDelegate: UINavigationBar.appearance().isTranslucent = false UINavigationBar.appearance().barTintColor = UIColor.red UINavigationBar.appearance().tintColor = UIColor.white In UITableViewController: self.tableView.refreshControl = UIRefreshControl() if #available(iOS 11.0, *) { self.navigationController?.navigationBar.prefersLargeTitles = false } else { //

NSURLConnection finished with error - code -1002

柔情痞子 提交于 2019-12-12 07:32:11
问题 Friends i have simple audio player (MPMoviePlayerController) which can play audio stream. On iOS 11 i have very interessing trouble, thousand time i have error and my stream was stopped: NSURLConnection finished with error - code -1002 I paste this code (this code i saw on stackowerflow) but it's not help to me: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>cast.mysite.com</key> <dict> <key