摘要:
1.superview获得自己的父控件对象@property(nonatomic,readonly)UIView *superview2.subviews获得自己的所有子控件对象@property(nonatomic,readonly,copy)NSArray *subviews; int count=self.view.subviews.count; NSLog(@"控件的个数有%d",count);3.tag控件的ID\标志,父控件可以通过tag来找到相应的子控件@property (nonatomic)NSInteger tag;4.frame控件所在的矩形框位置和尺 阅读全文
摘要:
代码 【Alert】代码:1.加入协议2.-(IBAction)btnShowAlertView:(id)sender{ UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"标题" ... 阅读全文