//
// CCUIActionSheet.h
// CCFC
//
// Created by xichen on 11-12-23.
// Copyright 2011 ccteam. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UIActionSheet(cc)
// create a common actionsheet
+ (UIActionSheet *)createCommonActionsheet:(NSString *)aTitle
cancelBtnTitle:(NSString *)cancelBtnTitle
destructBtnTitle:(NSString *)destructBtnTitle
showInView:(UIView *)view;
#if CC_ENABLE_PRIVATE_API && CC_COMPILE_PRIVATE_CLASS
- (void)setMessage:(NSString *)msg; // set the message content
- (NSString *)message; // get the message content
- (void)setDefaultButtonIndex:(int)index; // set the index of the destructiveButton
- (int)defaultButtonIndex; // get the index of the destructiveButton
#endif
@end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIActionSheet.h
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUIActionSheet.h
本文介绍了如何使用UIActionSheet组件创建通用的操作表单,并提供了设置消息内容、默认按钮索引等方法。此外还提供了取消按钮和破坏性按钮的标题设置选项。
126

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



