2013. 5. 11. 21:08
//버튼 동적으로 생성하기
UIButton *btnCancel = [UIButton buttonWithType:UIButtonTypeRoundedRect];
btnCancel.frame = CGRectMake(110, 55, 90, 37);
[btnCancel setTitle:[NSString stringWithFormat:@"%@",NSLocalizedString(@"Cancel", @"")] forState:UIControlStateNormal];
btnCancel.backgroundColor = [UIColor blueColor];
[btnCancel addTarget:self action:@selector(dismissBtnCancel) forControlEvents:UIControlEventTouchUpInside];
[theView addSubview:btnCancel];
'IT > iOS' 카테고리의 다른 글
[regularExpression(정규표현식) replace multiple new lines into one new line(여러줄을 한줄로 바꾸기) (0) | 2013.08.04 |
---|---|
UISlider에 이미지 붙히기 (0) | 2013.05.12 |
아이폰 UI 싸이즈 (0) | 2013.05.12 |
이미지 컨트롤에 맞게 자동으로 늘여서 사용하기 (0) | 2013.05.11 |
컨트롤보다 큰 이미지가 있을때 컨트롤싸이즈에 맞게 조절하기 (0) | 2013.05.11 |