Question About id and Delegate Usage in Obj-C
Posted
by
Stunner
on Stack Overflow
See other posts from Stack Overflow
or by Stunner
Published on 2010-12-25T22:44:02Z
Indexed on
2010/12/26
4:54 UTC
Read the original article
Hit count: 189
Ey guys, I am wondering what the following line of code is doing:
@property (assign, nonatomic) id <CoursePlannerDelegate> delegate;
Namely I am wondering about this portion of the line:
id <CoursePlannerDelegate> delegate;
It also shows up in other places:
@interface CategoryAddViewController : UIViewController {
UITextField *nameField, *weightField;
double maxWeight; //The maximum weight that can be allocated to this Category (max value of 100)
id <CategoryAddDelegate> delegate; //A Course Planner TVC
}
Any help appreciated, thanks in advance!
© Stack Overflow or respective owner