You might have curiously switched on Xcode Server and now the hammer icon refuses to go In order to quit/stop Xcode server you just need to turn it off from Xcode preferences. Go to Preferences Go to Server and Bots and switch it off Once off the hammer icon will go away… Read more »
Adding custom font of your choice or of your business theme, in your iOS app is quite important. Custom fonts can enrich your app and transform it from just and app to an awesome app. Adding custom font in iOS application is a step by step process. In this article… Read more »
In Objective-c we used componentsSeparatedByString NSString *stringToSplit=@”str0,str1,str2,str3,str4,str5″; NSArray *arrayFromString = [str componentsSeparatedByString:@”,”]; In swift we can split a string into array simply by calling split() method var stringToSplit = “str0,str1,str2,str3,str4,str5” let arrayFromString = stringToSplit.split(separator: “,”) Less code.. 🙂
ARC can be disabled for a single or group of files in a project. Adding -fno-objc-arc compiler flag for the selected files in Target->Build Phases -> Compile Sources disables ARC for those files. You can do it in simple two steps Go to Target – > Build Phases-> Compile Sources Select… Read more »
Xcode 9 can be downloaded from apple downloads here Xcode 9.0 A convenient list of all previous Xcode versions with their download links can be found here>>
If while using git or brew commands you get “xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist” it means that xcode command line tool is not being found. Happens usually after updating Xcode or removing it. usually one of the two commands given below resolves it sudo xcode-select –… Read more »
Xcode 9 make you free with wireless debugging.No more tied to cable. In order to connect your device for wireless debugging you need to perform following steps Open Devices and Simulators window Connect your device normally with lightening cable Select the device which you want to connect from Devices tab… Read more »
App Transport Security ATS encourages developers to use HTTPS over HTTP and thus any HTTP request is blocked. You can still workaround this security feature during development. But remember its strictly a workaround and should not be carried over to production as it will leave you app vulnerable Workaround for… Read more »
In order to show the line number in Xcode editor following steps are needed Open Xcode preference cmd +, or Then in Text Editing tab check Line Numbers
A ViewController in an application is seldom standalone in nature. They require data from ViewControllers in front and from those behind them, this leaves us with two types of data passing Forward Data passing Backward data passing For discussing both kinds of data passing we have two ViewCotrollers ASViewController ASViewControllerB… Read more »