objectivec_'s profile picture. Beginners tidbits on Objective-C (mostly from Big Nerd Ranch & other resources)

Objective-C

@objectivec_

Beginners tidbits on Objective-C (mostly from Big Nerd Ranch & other resources)

Foundation vs Core Foundation. E.g.: NSArray vs CFArrayRef Foundation: Objective-C Core Foundation: C


Obj-c : “instancetype” vs “id” medium.com/@feelgifted/ob…


device orientation : as name suggests is the orientation of the physical device. interface orientation: is the property of running app.


There are 2 distinct orientations in iOS, 1. device orientation 2. interface orientation


UILongPressGestureRecognizer: a touch must be held 0.5 seconds (default value) to become a long press. You can override this.


There is only one UIMenuController per application.


UIBarButtonItem is not a subclass of UIView.


UINavigationItem has 3 customizable areas 1. leftBarButtonItem (a UIBarButtonItem) 2. rightBarButtonItem(a UIBarButtonItem) 3. titleView


UINavigationItem has 3 customizable areas 1. leftBarButtonItem 2. rightBarButtonItem 3. titleView


UIViewController sets the UINavigationItem. UINavigationController's UINavigationBar uses the UINavigationItem to show the title.


UINavigationItem is not a subclass of UIView, so it cannot appear on the screen by itself.


UIViewController has a navigationItem property of type UINavigationItem.


UITableViewCell's contentView has 3 subviews. 1. UILabel textLabel 2. UILabel detailTextLabel 3. UIImageView imageView


Each row in a UITableView view is a UITableViewCell view. And UITableViewCell has a subview called contentView.


when UITableViewController create its view, the dataSource, delegate ivars of the UITableView are automatically set to UITableViewController


UITableViewController is a subclass of UIViewController, so a UITableViewController has a view, which is instance of UITableView.


UITableViewController is subclass of UIViewController UITableViewController : UIViewController<UITableViewDelegate, UITableViewDataSource>


Instance of UITableViewController can fill all 3 roles: 1. view controller 2. data source 3. delegate


UITableView needs a 1. view controller 2. data source 3. delegate


Loading...

Something went wrong.


Something went wrong.