Let make your code be complicated…
[Read More]
How to handle a response with `success` and `error` cases in only one completion block handler by using Swift?
Nowaday, there are a lot of solution to handle response which has multiple states.
[Read More]
How to make an animation within an UIImageView from a list of images by using Swift?
If you have some images like this:
[Read More]
How to adjust custom fonts vertical alignment - Xcode
Some time when you custom font in your project, and the font display not correctly, so how to fix that:
[Read More]
What are differences between Content Hugging and Content Compression Resistance Priority - Cocoa Autolayout?
Summary:
[Read More]
Quick qay to add new Auto Layout Constraints by using Swift
What you will do when you wanna add some spaces between a label and a button? Or add width for a label?
[Read More]
How to debug UIWebView in iOS?
If you’re using iOS >= 6 and you have mountain lion (10.8) or Safari >= 6, you can just:
[Read More]
How can I use 'guard', 'where' statements in Swift2.0? Is it powerful?
Good way to optimize your code :P
[Read More]
How to manage the errors in your iOS app by using Swift?
I used to got huge mistaken with handle a lot of errors, and almost the errors from after you call REST API or networks, I just print(error):
[Read More]
map(), flatMap() in Swift, Its So Fantastic
Array
[Read More]
CocoaPods Install Rase Warning "This Can Be the Result of a Merge and the Unknown UUID Is Being Discarded."
Have you ever get some warnings like this?
[Read More]
How to Localise a String With Enum by using Swift?
Fist thing, please don’t use localized string with dynamic text, it doesn’t work
How it works:
[Read More]
How to Add iOS UI Test in Xcode 7?
1. Create simple project: Click on a button and then get the text in textfield for the label
[Read More]
How Did You Manage Constants in Your iOS App?
The reason to manages the Constants in app is: We have a lot of static values and which makes easier to know where they are when you wanna reuse them.
[Read More]
How to Calculate the Height of the Text Depends on Width and Font by using Swift?
The height of the text depends on the font, width and especially it has multiple lines.
[Read More]
How to organize folders in your iOS applications?
With my experiences, here are my persional ideas to apply for MVVM pattern.
[Read More]
How to hide status bar by repss an uibutton in iOS 9 by using Swift?
With animations:
[Read More]
How to press on a link to open iOS application by using Swift? Universal Links in iOS 9
In iOS 9, your app can register to open web links (using https or http) directly, bypassing Safari. Here is the process to add Universal Links:
[Read More]
How to Manage All Localized Strings in Your Project - Xcode?
Using ‘genstrings’ tool from Apple which included into Xcode
[Read More]
How to Capture an Image From MKMapView and MKPolyline Using Objective C?
[MKMapSnapshotter takeSnapShotOfTargetSize:CGSizeMake(320, 150) withPolyline:(MKGeodesicPolyline *)polyline completion:^(UIImage * image, CGFloat height) {
self.polylineImageView.image = image;
}];