//
// TSAlertView.h
//
// Created by Nick Hodapp aka Tom Swift on 1/19/11.
//
#import <UIKit/UIKit.h>
typedef enum
{
TSAlertViewButtonLayoutNormal,
TSAlertViewButtonLayoutStacked
} TSAlertViewButtonLayout;
typedef enum
{
TSAlertViewStyleNormal,
TSAlertViewStyleInput,
} TSAlertViewStyle;
@class TSAlertViewController;
@class TSAlertView;
@protocol TSAlertViewDelegate <NSObject>
@optional
// Called when a button is clicked. The view will be automatically dismissed after this call returns
- (void)alertView:(TSAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
// Called when we cancel a view (eg. the user clicks the Home button). This is not called when the user clicks the cancel button.
// If not defined in the delegate, we simulate a click in the cancel button
- (void)alertViewCancel:(TSAlertView *)alertView;
- (void)willPresentAlertView:(TSAlertView *)alertView; // before animation and showing view
- (void)didPresentAlertView:(TSAlertView *)alertView; // after animation
- (void)alertView:(TSAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex; // before animation and hiding view
- (void)alertView:(TSAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex; // after animation
@end
@interface TSAlertView : UIView
{
UIImage* _backgroundImage;
UILabel* _titleLabel;
UILabel* _messageLabel;
UITextView* _messageTextView;
UIImageView* _messageTextViewMaskImageView;
UITextField* _inputTextField;
NSMutableArray* _buttons;
}
@property(nonatomic, copy) NSString *title;
@property(nonatomic, copy) NSString *message;
@property(nonatomic, assign) id<TSAlertViewDelegate> delegate;
@property(nonatomic) NSInteger cancelButtonIndex;
@property(nonatomic, readonly) NSInteger firstOtherButtonIndex;
@property(nonatomic, readonly) NSInteger numberOfButtons;
@property(nonatomic, readonly, getter=isVisible) BOOL visible;
@property(nonatomic, assign) TSAlertViewButtonLayout buttonLayout;
@property(nonatomic, assign) CGFloat width;
@property(nonatomic, assign) CGFloat maxHeight;
@property(nonatomic, assign) BOOL usesMessageTextView;
@property(nonatomic, retain) UIImage* backgroundImage;
@property(nonatomic, assign) TSAlertViewStyle style;
@property(nonatomic, readonly) UITextField* inputTextField;
- (id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...;
- (NSInteger)addButtonWithTitle:(NSString *)title;
- (NSString *)buttonTitleAtIndex:(NSInteger)buttonIndex;
- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated;
- (void)show;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——TomSwift-TSAlertView-37c4c4d.zip
共23个文件
png:6个
m:4个
xib:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 116 浏览量
2023-07-05
23:24:23
上传
评论
收藏 141KB ZIP 举报
温馨提示
iOS游戏应用源代码——TomSwift-TSAlertView-37c4c4d.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——TomSwift-TSAlertView-37c4c4d.zip (23个子文件)
TomSwift-TSAlertView-37c4c4d
README.mdown 4KB
Source Code License.rtf 6KB
TSAlertView
TSAlertViewMessageListViewShadow.png 288B
TSAlertView.h 3KB
TSAlertViewButtonBackground.png 546B
TSAlertViewBackground2.png 9KB
TSAlertViewBackground.png 4KB
TSAlertViewCancelButtonBackground.png 559B
TSAlertViewButtonBackground_Highlighted.png 550B
TSAlertView.m 21KB
Demo
TSAVDemo-Info.plist 1013B
main.m 316B
TSAVDemo_Prefix.pch 185B
TSAVDemo.xcodeproj
project.pbxproj 16KB
Nick.perspectivev3 43KB
Nick.pbxuser 11KB
MainWindow-iPad.xib 32KB
Classes
TSAVDemoAppDelegate.h 408B
TSAVDemoViewController.xib 398KB
TSAVDemoAppDelegate.m 3KB
TSAVDemoViewController.m 2KB
TSAVDemoViewController.h 653B
MainWindow.xib 31KB
共 23 条
- 1
资源评论
快乐无限出发
- 粉丝: 1137
- 资源: 7276
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功