首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

获取旋钮的title

2012-09-08 
获取按钮的title- (IBAction) btnPressed:(id)sender{NSString *title [sender titleForState:UIControl

获取按钮的title

- (IBAction) btnPressed:(id)sender{NSString *title = [sender titleForState:UIControlStateNormal];NSString *newText = [[NSString alloc] initWithFormat:@"%@ button pressed.",title];statusText.text = newText;[newText release];}
?

热点排行