Home
search
Collections
Sign in or create an account
×
Upload an optional image.
Medium site navigation
Upload an optional image.
Kishore Kumar Mohan
Following
33
Followers
7
Elsewhere
Follow
Most recommended
Obj-c : “instancetype” vs “id”
Both “id” and “instancetype” are keywords in objective-c.
“id” — a reference to some random Objective-C object of unknown class “instancetype” — a reference to instance of the class to which the method belongs Lets look at e.g.: “MyObject” class contains 2 factory methods one returns “instancetype” and other returns “id” @interface MyObject : NSObject + (instancetype) factoryMethod1; + (id) factoryMethod2; @end When you create instance of the “MyObject” class and call a method lets say “count”.
Kishore Kumar Mohan
1 min read
Latest
iOS : How to display text in different angles or upside down?
Imagine you are building a playing card game where you need to display the face value of the card upside down.
Kishore Kumar Mohan
2 min read
iOS : How to hide and change UI of status bar?
To hide the status bar, override below method in your ViewController.
Kishore Kumar Mohan
1 min read
UIMotionEffect
@interface ViewController ()
Kishore Kumar Mohan
2 min read
More
Collections edited by Kishore Kumar Mohan
iOS — beginner tips
Follow
0