Skip to main content

Posts

Showing posts from January, 2019

Helpful XCode command tips

   Xcode bundled with iOS Simulators has got powerful tools and options. In few cases we need to go beyond those options - via terminal commands. In this article I listed couple of them & You can expect me to keep updating. To show gestures in simulator //Note: Restart simulator after executing command for immediate effect > defaults write com.apple.iphonesimulator ShowSingleTouches 1 To record video in the simulator //Note : Close simulator and run command > xcrun simctl io booted recordVideo ~/Desktop/record_file_name.mp4 Delete all unused simulators to free up mammoth Space > xcrun simctl delete unavailable Bonus : To show hidden files in the mac > defaults write com.apple.finder AppleShowAllFiles YES

Animating label text update - choosing a better way

Recently I published a countdown app .  At one point of development - I have to show a timer on a UILabel which ticks on each seconds. As usual I started  setting text to a label object - self .timerLabel.text = someString Easy piece of cake right !?   But wait ... it won't take much user attention when timer ticks on every seconds. So I decided to make use of a simple animation while label gets text update. I found there are dozens of ways to animate a label. In this short article, I listed 3 best way you can animate text on a label. ( Spoiler Alert 👀- I decided to go with 3rd option)  1. Fade In - Fade out animation : CATransition class has got transition type `fade`. With timing function of CATransition - I was able to see the below result. let animation: CATransition = CATransition () animation.timingFunction = CAMediaTimingFunction (name: CAMediaTimingFunctionName .easeInEaseOut) animation.type = CATransitionType .fade animation.subtype = CATransitionSubtype .

Backing multiple iOS versions

A latest iOS version update can cover ~85% of iPhone users which is significant compared to a newly released Android running just ~0.1% of devices. ( @StatistaCharts collected on September 2018 - iOS 11 vs Android Pie). If your application matters for the rest ~15% of “genuine” iOS users, then you have to spend extra time to support. Why does it matters ? Giving uniform user experience irrespective of iOS version and device factors - will give bonus market space for the sales. Essentially it will boost your revenue and popularity of the application. Deployment Target vs Base SDK Before heading to solution, we have to understand Xcode settings for Deployment Target and Base SDK.  A deployment target refers to the oldest version of iOS that is capable of running your project. To change your deployment target, open up your project file in Xcode and check the setting under Build Settings -> Deployment. Base SDK refers to the newest version of iOS that is capable of running

Top App Store rejections and common reasons

Apple scans on each and every app submitted to App store. Our responsibility is to make sure app followed all  App Store review guidelines  and will get approved before dead line. But sometimes the guidelines are interpreted differently by different reviewers and frequently change over time.  Interestingly, I exposed to some common and "repetitive" rejections. Those I listed below and you are welcome to consider it as your checklist. 1. If the app contains any kind of bugs and crashes will surely rejected. Make sure app involved in testing and cleared test cases. Also involved various iPhone models & iOS version in the process. 2. Lacking of meta data is also leads to rejection. The key point is Apple expects behaviour of app should match with app description.  3. If the app submitted with demo features will be considered as incomplete. So make sure your app  doesn't include keys like 'Beta', 'Demo' or 'Test'. 4. Even missing demo a

Upcoming iOS Conferences 2019

Tech conferences are the source of educational opportunity & gives a chance of networking with peers. 2019 will be yet another busy year for a mobile app developer. An iOS developer just waiting for Swift 5.0 release or next version of iOS is not sufficient to get a brainstorm. When I found a few dev conferences already started selling tickets for this year, I started noting down in this article. I hope you will mark down in your calendar for next event by end of this article. iOS Conf SG 2019   January 17-19 @Singapore This conference starts in next week itself featuring more than 20 pure iOS and Swift programming talks. It also includes one day workshop for 300 attendees. dotSwift    January 28-30 @Paris, France This European Swift Conference focused on training sessions for intermediate and hardcore developers along with many interesting talks. MobOS Feb 14-17 @Cluj-Napoca, Romania MobOS Community Romania intended to build network around mobile developer co