相關(guān)關(guān)鍵詞
關(guān)于我們
最新文章
iOS自定義提示彈出框?qū)崿F(xiàn)類似UIAlertView的效果

首先來看看實現(xiàn)的效果圖
下面話不多說,以下是實現(xiàn)的示例代碼
#import <UIKit/UIKit.h> typedef void(^AlertResult)(NSInteger index); @interface XLAlertView : UIView @property (nonatomic,copy) AlertResult resultIndex; - (instancetype)initWithTitle:(NSString *)title message:(NSString *)message sureBtn:(NSString *)sureTitle cancleBtn:(NSString *)cancleTitle; - (void)showXLAlertView; @end