u16suzuの blog

日々学んだことのメモブログです。

UIButtonの設置

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