1) Drag and Drop Label Object to Story Board
2) Select Show Assistant Editor
3) Right Click LabelObject, drag and drop to "ViewController.h"
4) Select ViewController.m, Add Below Code in viewDidLoad
_lblObj.text=@"First Label";
(or)
@synthesize lblObj;
lblObj.text=@"First Label";
No comments:
Post a Comment