1) Go to viewcontroller.h, declare below code
IBOutlet UILabel *lblObj;
2) Go to Story Board create new label
3) Right click on Label, Drag & drop "referencing outlet" to view Controller
4) Go to view controller.m write below code
lblObj.text=@"Second Label"
No comments:
Post a Comment