Category "ios"

UICollectionView display 3 items per row

I have a UICollectionView created from storyboard, I want to have 3 items per row in the view. I managed to do that using the following: - (CGSize)collect

Rotate UIButton 360 degrees

I've been trying to run an animation that rotates my UIButton 360 degrees using this code: UIView.animateWithDuration(3.0, animations: { self.vineTimeCapButt

Prevent UIAlertController from dismissing on UIAlertAction

I am working on one of the application where i am promoting user for force update using UIAlertController in which i don't wanted to allow user to perform any a

iOS - APNS how to use loc_key in payload

I have a message string i want to localize before i let APNS send a message to devices. I wish i could see the json payload itself to make me understand the st

Xcode Source Control - Push local changes stuck on Loading

I keep getting this problem with Xcode source control. If I checkout a previous branch and then switch back to my latest branch, sometimes I can no longer push

How to get the Iphone type from simulator (IOS)

There are a lot of solutions to find out on which device out app is running. iOS: How to determine the current iPhone/device model in Swift? But running in th

MKMapView ignoring Safe Area on iOS 11 and iPhone X

I'm trying to migrate a app to iOS 11 and for days I'm stuck with one ugly UI bug after the other. This time: MKMapView. I have a bunch of buttons which I pinne

How to get battery life of Bluetooth Low Energy in Swift 4?

I am able to get a value for BLE battery life with the help of following questions: Read data from BLE device Reading a BLE Peripheral Characteristic and chec

UIAlertController Unable to satisfy constraints

I am converting all my UIActionSheet and UIAlertView with UIAlertController. My problem is when I try to present a UIAlertController of style ActionSheet. Here

SwiftUI Toolbar item getting clipped when back button is pressed

I've run in to a strange behavior in SwiftUI that I can't seem to work around. Given the following simple example app I experience this behavior: The toolbar it

Is there any way to load the GLTF file which is compressed by Draco?

I am looking for a way how to load the draco compressed .gltf on iOS. I am using GLTFSceneKit to render the gltf file which is exported by Blender. But if I com

How can I reset the username Apple Transporter uses?

I've been using Apple's Transporter app on my Mac to push our mobile builds to the app store. Recently, my company made account changes that requires 2FA with o

Setting UIView.isAccessibleElement to true disables clicking of subview in voiceovermode

So I have a custom view controller that displays a dialog with a couple of buttons. When the view appears I want voiceover to read out some basic information d

How to animate collection view layout change while using `layoutAttributesForElements`?

I made a custom collection view flow layout that can toggle (with animation) between "film-strip" and "list" layouts. But after adding some fancy animations to

Archive in Xcode appears under Other Items

I am trying to submit an App to iTunes Connect using the Archive option. Building for a Generic iOS Device it usually shows up under iOS Apps in the Organizer.

`xcodebuild` for scheme and target options

why xcodebuild building the same application differently for scheme and target options? xcodebuild -target uConnect build Above commands builds with Release c

Unique Integer Value

I need a way to generate unique integer values in swift //string let g = NSUUID().UUIDString How can I accomplish the above in int format?

Difference between creating ViewModifier and View extension in SwiftUI

I'm trying to find out what is practical difference between these two approaches. For example: struct PrimaryLabel: ViewModifier { func body(content: Conte

Facebook PHP SDK - "Please close this tab to continue" error in iOS

I'm using the PHP SDK (v5.0) to log users into my site, using the basic code from Facebook's docs (I filled in and/or changed the necessary parts for my website

Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications [Codemagic]

Since I updated my flutter project to v2 I'm getting this error on Codemagic and I don't know what to do honestly. I'm using Windows 10 to develop on Flutter an