// // CCUIActionSheet.m // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIActionSheet.h" @implementation UIActionSheet(cc) // create a common actionsheet + (UIActionSheet *)createCommonActionsheet:(NSString *)aTitle cancelBtnTitle:(NSString *)cancelBtnTitle destructBtnTitle:(NSString *)destructBtnTitle showInView:(UIView *)view { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:aTitle delegate:self cancelButtonTitle:cancelBtnTitle destructiveButtonTitle:destructBtnTitle otherButtonTitles:nil]; [actionSheet showInView:view]; [actionSheet release]; return actionSheet; } @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIActionSheet.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIActionSheet.m
本文介绍了一个用于创建通用UIActionSheet的方法,该方法允许开发者指定标题、取消按钮标题、破坏性按钮标题,并显示在一个特定视图中。此功能有助于简化iOS应用中弹出菜单的实现。

被折叠的 条评论
为什么被折叠?



