UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.frame = CGRectMake(10, 50, 100, 30); [btn setTitle:@"push" forState:UIControlStateNormal]; [self.view addSubview:btn];
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.frame = CGRectMake(10, 50, 100, 30); [btn setTitle:@"push" forState:UIControlStateNormal]; [self.view addSubview:btn];