UILable * myLable = (UILabel *)[self.view viewWithTag:12];
myLabel.text = @"IOS";
说明:如果事先通过拖动,声明了UILabel,那么,在.m中直接用self.myLabel.text = @"IOS"或者是_myLabel.text = @"IOS";就可以实现文字的显示,如果不通过这种方法的话,则需要新建一个UILabel,并且定位他得tag的值,进而用myLabel.text=@"IOS"的语法进行内容的显示
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:xcode中获取xib或者storyboard中控件 的两种方式