【发布时间】:2011-07-04 07:03:20
【问题描述】:
我想更改UIActionSheet 的image of 和buttons,每个button 都有images,我希望每个button 都显示我想要的image。我在网上搜索了很多答案,但都没有用。
这里是UIActionSheet的初始化
-(IBAction)showActionSheet:(id)sender {
UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:nil otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];
popupQuery.actionSheetStyle = UIActionSheetStyleDefault;
[popupQuery showInView:self.view];
[popupQuery release];
}
【问题讨论】:
-
它与改变宽度和高度有关,这不是我的问题,我不想要
-
查看我创建的模拟 UIActionSheet 外观的类:stackoverflow.com/a/16636736/1901336
标签: iphone ipad uiactionsheet