Category "ios"

CLLocationDegrees to String variable in Swift

Given that the code var latitude = userLocation.coordinate.latitude returns a CLLocationDegrees Object, how can I store the value in to a variable so that I

SwiftUI dragging ScrollView flickers as the keyboard is dismissing

When I develop the feature that allows users drag ScrollView to dismiss keyboard in SwiftUI, I find that if you drag ScrollView as the keyboard is dismissing, t

What's the difference between all the Selection Segues?

Show Show Detail Present Modally Popover presentation Custom What is the difference between them? I couldn't find any documentation on it. There used to be so

Flutter: Playing sound from UInt8List in Android and iOS

I have a UInt8List which contains sound byte data (can be mp3 or wav). I am trying to build a small sound player component. However I found no way to put the by

How to determine if one array contains all elements of another array in Swift?

I have 2 arrays: var list:Array<Int> = [1,2,3,4,5] var findList:Array<Int> = [1,3,5] I want to determine if list Array contains all findList elem

Swift - Remove " character from string

I have a string which is "Optional("5")". I need to remove the "" surrounding the 5. I have removed the 'Optional' by doing: text2 = text2.stringByReplacingO

How to change keyboard background color in iOS?

I would like to know how to change the keyboard background color programmatically in iOS? The background is normally grey but I have already seen black backgrou

What's the height of a UITabBar on iOS 8, iOS 9, iOS 10, and iOS 11?

The height of the UITabBar seems to have changed between iOS 7 and 8/9/10/11. I'm posting this question for others to easily find the answer. So: What's the he

Turn off Autocorrect Globally in an App

I would like to disable text-entry autocorrect in an iPad application, regardless of what the global settings for autocorrect are on the device. Is there a good

iPhone constantly disconnecting while working in Xcode

I've been developing an app for a while and I haven't had any problems running the app on the device.. now a few days ago, whenever I connect the iPhone, it pla

iOS: How to add Assets folder inside a Framework and how to access them in code?

I create an iOS app and added a framework to it. The generated framework doesn't have an assets folder like the generate Single View App. So I made an Assets fo

Is it possible to create IndoorMaps like airports from Apple with IMDF?

Im quite confused about creating an IndoorMap for our company to display it on iPad's. Regarding to the new IndoorMaps-Program from Apple I thought I found the

get a error msg when test myapp on ipod

I use xcode4 develop a base map app , i set a region use MKCoordinateRegionMakeWithDistance like follow: self->map.hidden=NO; CLLocationCoordinate2D loc

Turn off or bypass SSL Certificate Verification in Swift iOS

I have my server certificates expired. I want to bypass or turn off certs verification from my swift iOS app so i can test app features. I need this just for

Scrolling is disabled when adding UIPanGestureRecognizer to UIScrollView

I have a scroll view and I want to make it disappear whenever a pan is done. It works fine and on panning the scroll view disappears but the problem is now I c

ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/ExpoKitApp.app/.bundle/Assets.car' can't be processed."

Problem summary : I would like to submit an app to the Apple App store (TestFlight). I am using Transporter v1.1 to submit the app. I am getting the following e

React-Native Bundle Error error SHA-1 for file is not computed

I am facing this error while creating bundle of react-native app. I am executing command react-native bundle --dev false --entry-file index.js --bundle-output

I can't make extension convenience init for UIImage

I want to create UIImage(urlString: String?). There is no error when I run this code but it is not working. extension UIImage { convenience init?(urlString:

XCode giving (“CFBundleExecutable” is not specified)

I'm trying to build and run a flutter app on my iPhone or iOS simulator. When I do a build, the build succeeds but it's giving me: Unable to install “Runn

How to make a UIButton looks like a email link button?

I am doing a contact us page. Here I want to add a email link and also I want to open the iPhone's default mail app while clicking that link. I don't know how t