Category "ios"

How can I debounce a method call?

I'm trying to use a UISearchView to query google places. In doing so, on text change calls for my UISearchBar, I'm making a request to google places. The proble

Error code 65 for command: xcodebuild How solve it?

I run ionic cordova build ios and the response ever is a error Please help me ** BUILD FAILED ** The following build commands failed: CompileXIB MyApp/C

Graphql and round trips. Is this just an ios app issue?

I'm taking another look at graphql, and I'm trying to understand why saving round trips is a benefit to developers. Is the cost of making a request so expensive

Set text in uicollectionviewcell

I have created a UIcollectionView and an array with some strings @[@"Item One", "Item Two", @"Item Three"]; In Tableview I would do this: NSString *object = s

Flutter - iOS build using Bitrise

I am using Bitrise to generate iOS build of my flutter project. I have follow this steps to configure workflow. It shows me error like this. . Can you please gu

failed: permission_denied when setValue: or removeValue: in Firebase Database | Swift 4

I have seen lots of answers in stackoverflow but none is working for me! This is my code: import UIKit import Firebase class ViewController: UIViewController

iOS: Recieveing a crash NSInvalidArgumentException NSConcreteMutableAttributedString addAttribute:value:range:: nil value

This is the line that the error is occurring on. [self addAttribute:(__bridge NSString*)kCTForegroundColorAttributeName value:(__bridge id)color.CGColor range

How to make a gradient circular path in Swift

I want to create a gradient circular path like the following image: and I have the following code: circularPath = UIBezierPath(arcCenter: .zero, radius:

Any option to view history of Resolution Center communications - iTunes Connect

One of my old app version is rejected by apple saying, Additional Information Needed that "Can you please specify, what feature of the app uses iTunes File Shar

Get class name of UIViewController in swift

How do you get the class name of a UIViewController class in Swift? In Objective-C, we can do something like this: self.appDelegate = (shAppDelegate *)[[UIAppli

TodayWidget built correctly but com.apple.springboard running

My todayWidget was developed for iOS 8 (and worked on it) and was a very simple todayWidget that only fetch data from a server in the widgetPerformUpdateWithCom

How to use NSLocalizedString function with variables in Swift?

I'm trying to localize my app using NSLocalizedString. When I import the XLIFF file, most works like a charm but something do not and some string is not localiz

Invalid Pre-Release Train. The train version '1.0' is closed for new build submissions

Xcode's organizer gives us this error message: Invalid Pre-Release Train. The train version '1.0' is closed for new build submissions With error code STATE_ERR

Center NSTextAttachment image next to single line UILabel

I'd like to append an NSTextAttachment image to my attributed string and have it centered vertically. I've used the following code to create my string: NSMuta

CLLocationManager startUpdatingLocation not calling locationManager:didUpdateLocations: or locationManager:didFailWithError:

I'm trying to use the CLLocationManager framework in my iOS project to access the user's location but when I call [locationManager startUpdatingLocation] ne

How to get a swift enum's associated value regardless of the enum case

I have an object FormField which has two properties: a String name, and a value which can accept any type--hence I've made it Any!. However, I've been told in a

MTAudioProcessingTap EXC_BAD_ACCESS , doesnt always fire the finalize callback. how to Release it?

Im trying to implement MTAudioProcessingTap and it works great. The problem is when Im done using the Tap and I reinstaniate my class and create a new Tap. Ho

(eSIM Integration iOS) How to use restricted API "addPlan" to enable e-sim profile in iOS device

After searching everywhere I found there is a way to add eSIM in iPhone using the following API func addPlan(with: CTCellularPlanProvisioningRequest, completi

using avplayerkit issue while playing video black screen coming

hello i am new to swift and i am using AVPlayerViewController for plaing video from my url but issue is that i am not able to load video only black screen showi

UITableViewRowAction vs UISwipeActionsConfiguration

The two APIs seem to get the same result. In which case is it better to use one over the other? override func tableView(_ tableView: UITableView, editActionsFo