I want to pass values(inputs from user)from view controller class to objective c class with UIView as subclass.And in objective c class I want to draw using these inputs. how an I do it?
Please help me?
I want to pass values(inputs from user)from view controller class to objective c class
Share
If the input is an
int,float,BOOL,NSString,NSDataorNSDate, then the easiest thing to do is to store these values inNSUserDefaults. They can then be recalled any time you wish from anyUIViewController.The NSUserDefaults Class Reference has all the information to get you started. In addition to the wealth of information there, here’s a simple example of how to save and retrieve an
NSString: