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