资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

ios开发中如何自定义UIAlertView之BSYAlertView-创新互联

小编给大家分享一下ios开发中如何自定义UIAlertView之BSYAlertView ,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

目前创新互联建站已为近1000家的企业提供了网站建设、域名、网络空间、网站托管维护、企业网站设计、汉寿网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

使用方法:

1.bsy_Window的用法:导入#import "bsy_Window.h"

  • (void)viewDidLoad {[super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];self.title = @" bsy_Window 演示";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:@"点击" 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:@"取消" sureMessage:@"确定" 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:@"温馨提示"];[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];}

2.UITableView+bsy的用法:导入#import "UITableView+bsy.h"

  • (NSInteger)tableView:(UITableView *)tableViewnumberOfRowsInSection:(NSInteger)section {[tableView tableViewDisplayWithMeg:@"没有商品数据"count:self.arr.count];return [self.arr count];}

  • ios开发中如何自定义UIAlertView之BSYAlertView

以上是“ios开发中如何自定义UIAlertView之BSYAlertView ”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前名称:ios开发中如何自定义UIAlertView之BSYAlertView-创新互联
当前地址:http://cdkjz.cn/article/csdisj.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220