{
UIButton * button = [[UIButton alloc]initWithFrame:frame];
[button addTarget:self action:@selector(onFrame:withEvent:) forControlEvents:UIControlEventTouchUpInside];
[self addSubview:button]
[button release];
}


- (void) onFrame:(UIControl *)control withEvent:(UIEvent *)even {
   
}

'iOS' 카테고리의 다른 글

UIView 와 Category의 만남  (0) 2011.10.26
UIButton Title 위치 정하기  (0) 2011.10.26
UIImageView 에 CALayer 로 그림자 효과 넣기  (0) 2011.10.24
UIImage 회전 관련 링크  (0) 2011.10.11
simbolicatecrash 위치  (0) 2011.10.06

+ Recent posts