2012-03-20 44 views

回答

0

創建您的UIBUtton normall。 那麼對於addTarget方法使用share

所以

UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 
btn.frame = CGRectMake(..... 
[btn addTarget:self action:@selector(share) forControlEvents:UIControlEventTouchUpInside];