摘要:
//创建UIBarButtonItemUIBarButtonItem * rightButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:nil... 阅读全文
摘要:
for (int i = 0; i < 4; i++) {//4是按钮的个数 NSString *backImage = backgroud[i]; NSString *heightImage = heightBackground[i]; ... 阅读全文
摘要:
//1.创建toolbar(MyToolbar继承UIToolbar) _myToolbar = [[MyToolbar alloc]initWithFrame:CGRectMake(kZero, kZero, kScreenW, kToolbarH)]; _myToolbar.ba... 阅读全文
摘要:
UITabBarItem *firstItem = [[UITabBarItem alloc]initWithTitle:@"测试" image:nil tag:11]; //设置字体颜色(后面设置字体状态)(UITextAttributeTextColor已过时) [firstItem ... 阅读全文
摘要:
1 //设置圆形cornerRadius,是宽或高的一半 2 3 _imageView.layer.masksToBounds = YES; 4 5 6 7 CGFloat w = _imageView.frame.size.width / 2; 8 9 ... 阅读全文
摘要:
1 //UIAlertView的代理方法(创建UIAlertView之后,copy此代理方法即可) 2 3 - (BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView{ 4 5 //1.取出输入框中的文字 ... 阅读全文
摘要:
1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 2 3 //1.取消选中这一行 4 5 [tableView deselectRowAtInde... 阅读全文
摘要:
1 2 3 //MyToolbar.h 头文件 4 @interface MyToolbar : UIToolbar 5 6 @end 7 8 //MyToolbar.m 实现文件 9 #import "MyToolbar.h"10 11 @implementation MyToolba... 阅读全文
摘要:
1 //1.创建toolbar左边的按钮,调用initWithTitle方法进行初始化2 3 // UIBarButtonItem *extend = [[UIBarButtonItemalloc]initWithTitle:@"扩展"style:UIBarButtonItemStylePlai... 阅读全文
摘要:
1 今日开通此博客用以记录IOS学习 阅读全文