1.One is CGFloat.It’s a floating point number.All floating point numbers that have to do with drawing on the screen or getting touch events or whatever are CGFloats.This might be a double.It might be just a regular floating point number.Not only usin
1.All objects in an array are held onto strongly in the heap.So as long as that array itself is in the heap,as long as someone has a strong pointer to the array itself,all the objects the are in the array will stay in the heap as well.Because it has
1.Now,this line of code could cause trouble.If self.image is nil,because I told you that if you have a method,this is just a getter of the image that returns a struct,and you send it to nil,you’ll get undefined results.(47:00) 2.Zomming in,really sim
1.Abstract means that this class cannot be instantiated and used,it’s only useful as a superclass for other classes that are concrete. (04:00) 2.And I also like to document,even on my implementation any methods that basically are abstract.Any method
1.There is a class called NSNotificationCenter .It has a class method called defaultCenter.That returns a shared instance kind of like NSUserDefault,standard UserDefault did — a shared instance.That’s the object you use to tune into radio stations. A
1.The difference is card.h is the public API.That’s what your dot h is.It’s your public API.It’s what methods in your class you want to make public so that other people can call them.Card.m is your private API and all your implementation. 2.It’s impo
1. 2. 3.UITableView Protocols:How do we connect to all this stuff in our code?Via the UITableView’s datasource and delegate. The delegate is used to control how the table is displayed. The dataSource provides the data what is displayed inside the cel