產(chǎn)品提出的需求有時(shí)候是很扯淡的,這個(gè)按鈕的字體,顏色。。。我去,所以系統(tǒng)的部分控件可以改變字體大小、顏色嗎?(搜了一下alertSheet還是可以的,不過(guò)我沒(méi)親測(cè),http://www.cnblogs.com/destiLaugh/p/5973218.html)


使用方法 資源文件在JasonAcitonSheetViewUtil文件夾內(nèi),導(dǎo)入頭文件 #import "XXYActionSheetView.h" 1.若使用代理方式 導(dǎo)入代理 XXYActionSheetViewDelegate
XXYActionSheetView *alertSheetView = [[XXYActionSheetView alloc] initWithTitle:@"您確定要?jiǎng)h除此消息" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:@"確定" otherButtonTitles:nil]; //彈出視圖 [alertSheetView xxy_show];
調(diào)用代理方法
pragma mark - XXYActionSheetViewDelegate
(void)actionSheet:(XXYActionSheetView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{ NSLog(@"delegate點(diǎn)擊的是:%zd", buttonIndex); if (0 == buttonIndex) {//
} }
2.使用block方式
XXYActionSheetView *alertSheetView = [[XXYActionSheetView alloc] initWithTitle:nil cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@[@"打開相冊(cè)", @"相機(jī)", @"微信支付", @"支付寶支付"] actionSheetBlock:^(NSInteger index) { NSLog(@"block點(diǎn)擊的是:%zd", index); if (0 == index) {
}
}];
//彈出視圖 [alertSheetView xxy_show];
demo下載地址: ( 如果你需要的話) https://github.com/JasonDraem/JasonActionSheetView.git
或者cocoachina搜索 JasonActionSheetView