How to customize the BSYAlertView of UIAlertView in ios development
Editor to share with you how to customize the BSYAlertView of UIAlertView in ios development, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
How to use it:
Usage of 1.bsy_Window: import # import "bsy_Window.h"
(void) viewDidLoad {[super viewDidLoad]
Self.view.backgroundColor = [UIColor whiteColor]; self.title = @ "bsy_Window Demo"; UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setFrame:CGRectMake ([UIScreenmainScreen] .bounds.size.width / 3, [UIScreenmainScreen] .bounds.size.height/2-30, [UIScreenmainScreen] .bounds.size.width / 3,60)]; [button setTitle:@ "Click" forState:UIControlStateNormal]; [button setTitleColor: [UIColor lightGrayColor] forState:UIControlStateNormal]; [button.titleLabel setFont: [UIFont boldSystemFontOfSize:20]] Button.backgroundColor = [UIColor brownColor]; [self.view addSubview:button]; [button addTarget:self action:@selector (buttonClick) forControlEvents:UIControlEventTouchUpInside]; / / Do any additional setup after loading the view, typically from anib.}
(void) buttonClick {
Bsy = [bsy_Window alloc] initWithFrame: [UIScreenmainScreen] .bounds]; [bsy addBsy_quitBtnMessage:@ "cancel" sureMessage:@ "determine" message:@ "Do anyadditional setup after loading the view, typically from a nib. Do anyadditional setup after loading the view, typically from a nib. Do anyadditional setup after loading the view, typically from a nib. "cueMessage:@" warm reminder]; [self.view addSubview:bsy]; [bsy.bsy_sureBtn addTarget:self action:@selector (bsy_Windowshow) forControlEvents:UIControlEventTouchUpInside];}-(void) bsy_Windowshow {bsy.hidden = YES; [self.navigationController pushViewController: [[TableViewControlleralloc] init] animated:NO];}
Usage of 2.UITableView+bsy: import # import "UITableView+bsy.h"
(NSInteger) tableView: (UITableView *) tableViewnumberOfRowsInSection: (NSInteger) section {[tableView tableViewDisplayWithMeg:@ "no commodity data" count:self.arr.count]; return [self.arr count];}
The above is all the contents of the article "how to customize the BSYAlertView of UIAlertView in ios development". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!