摘要:
UIActionSheet和UIAlertView因为UI有特殊的用途,所以本身并不允许你AddSubview之类的函数来自定义界面。解决的办法是继承它,实现一个自定义类,重载layoutSubviews函数//.h#import<UIKit/UIKit.h>@interfaceUIImageActionSheet:UIActionSheet{UIImage*titleImage;}-(id)initWithImage:(UIImage*)imagetitle:(NSString*)titledelegate:(id<UIActionSheetDelegate>)del 阅读全文