Category "ios"

Show Current Location and Update Location in MKMapView in Swift

I am learning how to use the new Swift language (only Swift, no Objective-C). To do it, I want to do a simple view with a map (MKMapView). I want to find and up

How to change font of UIButton with Swift

I am trying to change the font of a UIButton using Swift... myButton.font = UIFont(name: "...", 10) However .font is deprecated and I'm not sure how to chang

How to detect if code is running in Main App or App Extension Target?

Does anyone know how you detect from within your code if you're running inside an App Extension? I have an app which shares classes between an app and an exten

Failed to render and update auto layout status, Failed to launch designables agent because tool was shutting down

I start working on an iOS project and it's using IB and storyboard. I build it after cloning from the repository and it was successful. But the problem is after

AVPlayer layer not showing video content sometimes

AVPlayer layer not showing video content sometimes but plays audio. This happens some times not each time Here is my lines of code : override func viewDidLoa

Audio.play() causes tiny lag

Problem: I have made a flappy-bird like game using Three.js. Everytime I tap the screen, a "flap"-sound is played. However playing this audio causes a tiny lagg

Error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()

I have a firebase database linked up to two apps, one being an iOS app and another being a web app coded in node.js which is a basic algorithm that sets data to

"Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral" issue while installing react native on macOS Big Sur

I was trying to install React Native on my system, and found that it failed to install CocoaPods dependencies which is required by that template error. sudo arc

How to call a function from a different swift file

I have multiple swift files of type UIViewController in my Xcode 6 beta-2 project. I basically want to know some data from file A to use in file B. My files are

how i can scan ID Card(NIC) in flutter and also get data from it?

I am building an app in flutter and in that app one step is to scan an id card (NIC) and get their name, DOB, expiry date, etc, so I am confusing that how I can

Draw route directions using Google Maps iOS

I am getting a GMSPolyline to custom location but I am not getting a route direction (GMSPolyline) from user location to some custom location. What I have done

Firebase In-app messaging opens the URL with link only once in swift

I have a strange problem with firebase in-app message for iOS in swift. the message is getting displayed during the launch as expected,i was sending a URL with

Make a UIButton programmatically in Swift

I am trying to build UIs programmatically with Swift. How can I get this action working? override func viewDidLoad() { super.viewDidLoad() // Do any add

iOS image editor in swift

Is it possible to us iOS default image editor my existing app, like screenshot

How to set the value of checkboxes with a single variable

Hello folks of StackOverflow today I bring forth an optimization problem for you in swift As shown in the screenshot I have checkboxes in my screen and I have

iOS SwiftyZeroMQ get status

I am using SwiftyZeroMQ in iOS for zeromq. I can connect and communicate via sockets. But issue is I can't find anyway to know how can I get event/status that s

NotificationCenter to pass data in Swift

I am working on a test project in Swift 3. I am trying to pass textField string from one class to another class using NotificationCenter. I am trying to workout

Decrease iOS Application size to App Store

I am trying to submit an application in App Store, and I need to decrease its memory a little bit, if this is possible. I tried a method which I am gonna descri

Firebase Authentication iOS 12 invalid token

I have an App that makes use of Firebase Authentication using phone SMS verification and recaptcha (no APNS) The App works fine with the Authentication process

SKVideoNode with color blend using SKEffectNode crashes

I need to blend a color to the video as it done with textures in SKSpriteNode. The video has transparency (HEVC), you can download it here. Doc says that a vide