2012-03-20 62 views

回答

0

创建您的UIBUtton normall。 那么对于addTarget方法使用share

所以

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