u16suzuの blog

u16suzu のブログです。

UIButtonの設置

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