Questions tagged [ios11]

1

votes
1

answer
350

Views

AVAudioPlayerNode scheduled buffers and audio route change in iOS11

I am seeing different behaviour between iOS 9/10 and iOS 11 for buffers that are future scheduled on an AVAudioPlayerNode when an audio route change occurs (e.g. you plug in headphones). Has anyone experienced anything similar and how did you resolve it? Note that I reported this issue up on Apple'...
Andrew Coad
1

votes
0

answer
142

Views

Animating between two images on MKAnnotationView

I am currently working on a map feature that contains annotations with custom pins. Currently I have all my annotations displaying with custom pins - a sort of bubble image and a larger bubble for the current selected pin. Everything works grand for iOS 9 and 10 but I have hit a slight snag with i...
Robert
1

votes
0

answer
245

Views

iPhone App: Camera is not working properly in portrait mode but works in landscape

I am developing an iPhone application using Unity 5.6.4p2 and Vuforia. After build from Unity, opened in xCode 9.2, building and installed it to iPhone 6s/ipad pro (ios11.2). When I open the application in my iPhone/iPad in portrait mode the camera is not opening normally, sometime camera take 10/20...
Saif
1

votes
0

answer
95

Views

Custom button in iOS 11 Number Pad Keyboard Not showing

In our company iPhone app, we are using Number Pad keyboard with a custom button hyphen '-'. Throughout the iOS versions, we had to modify the code as below. Until up to iOS 10, the code below worked fine, but we are having an issue in iOS11. when i tap on the textbox on screen #1, the keypad along...
Robbie H.
1

votes
0

answer
100

Views

Stack view constraints changes top-layer's view width

I have a stack view holding 2 images. One image's width to be lower or equal to 140 and 1:1 ratio Stack view top constraint 20 and trailing constraint 5 When I want to set the stack view leading constraint to 5 (looking at the safe area leading) it enlarges the safe area to a width of 1920 and I hav...
Jeroen Beunckens
1

votes
0

answer
136

Views

iOS 11 UINavigationBar extra height when using searchController

I'm trying to add a search bar inside the navigation bar, here's my code: class ViewController: UIViewController { var searchController : UISearchController! override func viewDidLoad() { super.viewDidLoad() searchController = UISearchController(searchResultsController:nil) searchController.hidesNav...
guidev
1

votes
0

answer
105

Views

Apple Speech API - SFTranscriptionSegment's have same confidence value

I've noticed a strange behaviour using the Apple Speech Framework. After implementing in my own app and playing with the examples provided by Apple and online, I've noticed that the speech framework always returns the same confidence level for each transcription's segments following the results of a...
Elliott Minns
1

votes
1

answer
138

Views

CAShapeLayer flipped coordinate while using with iOS11 vision

I'm playing with iOS 11vision framework to detect facial features like nose, eyes, lips etc. Vision frame work gives very accurate normalize points for all facial features. Now I'm trying to draw a red line over right eye with help of bezier path and below is the code I'm using to draw same. 1) addF...
Jay Savsani
1

votes
1

answer
46

Views

Long CoreData predicate to match multiple terms to attribute + relationships

I’m using swift 4, Xcode 9, iOS 11 I am continuing to learn about CoreData via tutorials and Q&A posts, but I can’t seem to figure out how to answer this question. I have a CoreData entity with one attribute and 12 relationships to different entities that each contain 1-3 attributes. This is bec...
Coltuxumab
1

votes
0

answer
75

Views

GraphQL Query for track order status in Shopify iOS

I am new in GraphQL and Shopify also. My requirement is track order status using shopify iOS SDK and i am unable to find any solution to track order status. I am able to get user's order list using this query { customer(customerAccessToken: token) { orders(first: 20) { edges { node { id orderNumber...
vipulk617
1

votes
0

answer
108

Views

Delay between storyboard default properties and my custom properties on iOS 11 + XCode 9

I've been trying to solve this problem for a while but I cannot find a solution. The thing is I have a custom UITextField with custom properties, for instance, background color, and I reuse this control in my storyboards. The problem is when I run the app on the simulator or device, there is a littl...
jmrbcu
1

votes
0

answer
556

Views

Swift UIApplication.shared.canOpenURL returns false in iOS11

I am facing a strange issue, after I started running my app on iOS11 devices. I do NOT have a 'rejection' from Apple but it simply stopped working on devices/simulators using iOS11. For the call action to a number, I used the below code which worked well (and still works) on iOS10 simulators and dev...
Lohith Korupolu
1

votes
0

answer
187

Views

iPhone X safeAreaInsets Dynamic from function

I'm using SnapKit for layout in my iOS project and in landscape mode i want to add some constraints at the bottom. with the following code everything works good. containerView.snp.updateConstraints { (update) in update.left.equalToSuperview().offset(58) update.top.equalToSuperview().offset(0) if #av...
Kwnstantinos Natsios
1

votes
0

answer
60

Views

CMPedometer warn not counting steps on iPad

I have a problem with getting steps on iPad 2017 (iOS 11). I have this code to check if CMMotionActivityManager.isActivityAvailable() { startTrackingActivityType() // Works good and I get activity. } if CMPedometer.isStepCountingAvailable() { // does not work } else { print('Step Counting Unavailab...
Matrosov Alexander
1

votes
0

answer
113

Views

What causes “Cannot connect to iTunes Store” using In-App purchases in an Ionic 3 app?

I wrote an Ionic 3 app for iOS and use the native in app purchase. I know, that in app purchase (IAP) is only working on a real device. The problem is, that I submitted my app to Apple and they rejected the app because IAP isn't working. Only the error 'Cannot connect to iTunes Stores' shows up. A...
Daniel
1

votes
0

answer
179

Views

Customize iOS11 Document Based App Template

I need to do the following customizations on the provided iOS 11 Document Based App Template: A library with only my App files, as Procreate example App bellow Get rid of the sidebar browser, so I have a fullscreen that shows only my library. https://assets.procreate.art/video/home/mp4/block-10.mp4...
Alexandre Lordelo
1

votes
1

answer
1.2k

Views

Fast tap gestures in Swift 4 and iOS 11

I just made a simple app to try out any type of gestures. I got to the tap gesture. So I thought, what if I made a fast tap game kind of application that counts the amount of taps the user performed. But soon enough I ran into some issues. It did not count all the taps. If I began to tap as fast as...
Arabig
1

votes
0

answer
156

Views

How to scroll to show search bar under navigation bar like iOS 11 iBook

When scrolling up and down, top is fixed like magnetic, but search bar can be shown if drag more. I guess Search bar does not attached to Tableview as 3rd screen shot. I record it as video to show scrolling https://youtu.be/3imNlLhlv8Q How to do it?
dobiho
1

votes
0

answer
80

Views

ImageView inside StackView moved to the edge of the screen on iOS 11

I've got a view that contains vertical StackView: Alignment - Fill Distribution - Fill Proportionally Spacing - 15 that contains several horizontal StackViews: Alignment - Fill Distribution - Fill Proportionally Spacing - 10 in which there is an ImageView and Label which can have text in 2 lines....
user3448282
1

votes
0

answer
263

Views

HTML5 Audio Control on Mobile Safari (iPhone, ios 11)

I am trying to figure out why the HTML5 audio control will not work on iPhone and other devices running ios 11 when playing a live Shoutcast stream. I have tried it two ways and it works on desktop computer and android but not ios 11. Your browser does not support the audio element. Your browser doe...
user5919866
1

votes
0

answer
749

Views

iOS 11 UITableView bug with automatic sectionHeaderHeight can cause glitchy animations and leave broken sections on top of tableview

Whilst developing my latest app I would occasionally experience a rendering problem with my tableview where it appeared that my tableview cells weren't given enough space to fit in each section. I struggled to reliably reproduce the issue until recently and after exhausting everything I could think...
jimbobuk
1

votes
0

answer
41

Views

UIPageViewController: How To Accomplish State Restoration

I would like to know how to go about accomplishing state restoration in an application that uses a UIPageViewController. Given that, at the time of termination, the controller is displaying page n of N and page n has state that is the result of user interactions: How would one go about employing iOS...
Verticon
1

votes
1

answer
40

Views

UI Difference in IOS 11 and Lower versions

In my application while designing the UI i am facing some UI Issue. The Top contraints I am setting in story board are coming same in IOS 11 but in versions lower to that UI is moving up. Please see the attached image As you can see image in IOS 10 is above from the one in IOS 11.2. How I can have...
Shruti
1

votes
0

answer
928

Views

iOS 11 Safari webapp status bar styling adds bar below body and html

With the following meta tags set: and following style: html, body { width: 100%; height: 100%; overflow: hidden; position: fixed; } If started in full screen, the status bar is transparent with white text, and the viewport starts at the top of the screen, but it ends above the bottom of the screen....
ZorgoZ
1

votes
0

answer
162

Views

Ambiguous use of “observe” (Swift Compiler Error)

I am trying to load messages from Firebase but its telling me 'Ambiguous use of observe' Please help...new to IOS func fetchMessages(){ let messageDB = Database.database().reference().child('Messages') messageDB.observe(.childAdded) { (snapshot) in let snapshotValue = snapshot.value as! Dictionary l...
Banotik
1

votes
0

answer
149

Views

PJSIP IPv6 registration issue in iOS 11.2.5

We have integrated PJSIP based SDK in our app and We are doing registration two times at the time of app launch. First time with 'SIP EndpointId, Pwd' status = pjsua_acc_add(&acc_cfg, PJ_TRUE, &acc_id); NSLog(@'Status of registration, %d', status); if (status == PJ_SUCCESS) { //Registration succes...
SivaCherukuri
1

votes
0

answer
194

Views

Does prefersLargeTitles work with UIPageViewController?

The standard use case of UINavigationBar.prefersLargeTitles is with a UITableViewController, or with a UIViewController that has a TableView as its first view in the hierarchy. My question is, how to make prefersLargetTitles work with UIPageViewController that contains TableViewControllers?
Jonas
1

votes
0

answer
496

Views

Present Controller using iOS Safe Area Layout

I am using iOS 11 safe area layout guidelines and set background color of status bar like this extension UIApplication { var statusBarView: UIView? { return value(forKey: 'statusBar') as? UIView } } UIApplication.shared.statusBarView?.backgroundColor = .green When presenting a controller with the r...
Noshaid Ali
1

votes
0

answer
202

Views

Drag and drop from one tableView to another within same view

I'm creating an iPhone app, and I am trying to implement the ability to drag from one tableview to another. My view consists of a view controller with two tableViews positioned next to each other, and both of the tableViews display items of the same type. I've implemented drag and drop reordering wi...
tungsten
1

votes
0

answer
106

Views

Handling Push Notification on iOS 10.3 or newer when the app is terminated

I want to find out which method is triggered when a terminated application receives a notification from my server. The application is being developed through Swift 4, my Deployment Target is 10.3 and Firebase is used to send notifications to users. I've configured my application in AppDelegate.swift...
chicco.caste21
1

votes
0

answer
143

Views

iOS 11 URLSessionDataTask's progress variable is not showing right progress

I need to find out progress of an upload task. But I can only use the URLSession's dataTask method (instead of uploadTask method) to create the task. I can't use delegate initializer to create the session also. To find the progress I'm using KVO on the URLSessionDataTask's progress variable as in th...
user1165756
1

votes
2

answer
152

Views

HTML5 Video iOS11 issue

I've used the code from EmailOnAcid for implementing HTML5 video into e-mails, and it works in all clients,except for the standard mail client in iOS11. https://www.emailonacid.com/blog/article/email-development/a_how_to_guide_to_embedding_html5_video_in_email The thumbnail of the video is shown, bu...
Nikolai907
1

votes
1

answer
75

Views

iOS 11 accessing contacts crash

We're having issues with iOS-11 users when they try to access contacts in the app, app crashes... but could not ever succeed to reproduce the issue on our side, using devices and simulators. Application uses AddressBook framework for retrieving the contacts, info.plist also contains all the required...
bosK
1

votes
1

answer
750

Views

Bundle display name(CFBundleDisplayName) missing space characters in iOS 11

When I give Bundle display name with space as 'my app display name', I get the app name as ('myappdisplay...'). This happens only on the iOS 11 , in iOS 10 and below(
Sun_Josh
1

votes
0

answer
211

Views

iOS 11: Force UIWebView to use cache (NSURLCache) when offline

Since iOS 11, when the device is offline, network requests are most often fail quickly with a “The Internet connection appears to be offline.” error message (code -1009). Previously – as was the case for iOS version < 11 – request would first try and go through (parts of) the URL loading sys...
Daniel Pietzsch
1

votes
0

answer
100

Views

iOS11.2 iPad landscape, static split view, new SearchController, SearchBar usage spacing issue

New to Xcode/Swift, learning to use new SearchController methods (nav item, not table header). Dev'ing iPad landscape static split view app and search works fine, but has following UI behavior: This is the starting point (master list before pull down to reveal searchbar): master list before pull dow...
Steven
1

votes
3

answer
977

Views

Position element to CGRect with Safe Area

I´m declaring a button: let button = UIButton(frame: CGRect(x: ?, y: ?, width: 50, height: 50)) But I´m note sure how to set x and y relative to the Safe Area so that it works good on both >= iOS 11 and
user9400347
1

votes
0

answer
60

Views

How do I get points to display using OpenGLES 2?

I have tried many different things, but I have the impression that this is all that I need to do to generate points instead of lines or triangles. The uncommented glDrawElements works, the commented commands to set line width and draw just lines works, but trying to draw the points does not. Is th...
J.Doe
1

votes
1

answer
27

Views

UITableViewController inside UITabBarController = unwanted padding on iOS 11

I need to have a UITabBarController hosting UITableViewControllers. My controllers are organised this way: UITabBArController UINavigationController for tab 1 UITableViewController for tab 1 UINavigationController for tab 2 UITableViewController for tab 2 UINavigationController for tab 3 UITableView...
Tim Autin
1

votes
1

answer
239

Views

Not able to handle permission for NSPhotoLibraryAddUsageDescription

I am using uiactivityviewcontroller; In which there is a option to save photo to device. So I added NSPhotoLibraryAddUsageDescription key for permission, But not able to handle permission, once user click on Don't allow nothing happens when again click on same option to save photo; I saw this link:...
JeanR

View additional questions