获取按钮的title
- (IBAction) btnPressed:(id)sender{NSString *title = [sender titleForState:UIControlStateNormal];NSString *newText = [[NSString alloc] initWithFormat:@"%@ button pressed.",title];statusText.text = newText;[newText release];}?
发布时间: 2012-09-08 10:48:07 作者: rapoo
获取按钮的title
- (IBAction) btnPressed:(id)sender{NSString *title = [sender titleForState:UIControlStateNormal];NSString *newText = [[NSString alloc] initWithFormat:@"%@ button pressed.",title];statusText.text = newText;[newText release];}?