上一页 1 ··· 4 5 6 7 8

2015年8月22日

IOS UI NavigationController结构

摘要: NavigationController结构包括NavigationBar和ToolBar两个部分。 NavigationBar又包括titleView和leftBarButtonItem和rightBarButtonItem Toolbar中有若干UIBarButtonItem 结... 阅读全文

posted @ 2015-08-22 15:55 MrYude 阅读(133) 评论(0) 推荐(0) 编辑

IOS UI 自定义navigationBar布局

摘要: navigationBar背景设置 //1. 配置navigationBar背景图片 [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"header_b... 阅读全文

posted @ 2015-08-22 15:13 MrYude 阅读(217) 评论(0) 推荐(0) 编辑

IOS UI 代码界面跳转常用方式

摘要: 第一种方法: (1)从viewController跳转到SecondviewControllerSecondViewController *secondView=[SecondViewController alloc]; [self presentViewController:... 阅读全文

posted @ 2015-08-22 14:54 MrYude 阅读(157) 评论(0) 推荐(0) 编辑

2015年8月15日

IOS OC 多态(白话)

摘要: 面向对象的三个基本特征:封装,继承,多态。本文浅谈我自己对多态的理解。很多初学者在听老师讲多态的时候可能会比较迷糊,有的可能明白了大致的概念但是自己真正实施就会遇到困难,或者更有的你其实早就会了多态只是不知道这叫多态而已。废话少说,现在我们举一个最简单需要使用多态的例子。假如你有一个Animal类,... 阅读全文

posted @ 2015-08-15 17:37 MrYude 阅读(148) 评论(0) 推荐(0) 编辑

IOS OC NSArray&NSMutableArray

摘要: /* 数组基础知识 */ //创建一个数组 NSArray *arr1=[[NSArrayalloc] initWithObjects:@"1",@"2",@"3",nil]; NSArray *arr2=[[NSArrayalloc] initWithArray:arr1... 阅读全文

posted @ 2015-08-15 15:52 MrYude 阅读(91) 评论(0) 推荐(0) 编辑

IOS OC NSString基础知识

摘要: /* 创建一个字符串的常用方法 */ //拼接创建字符串 NSString *str0=[[NSStringalloc] initWithFormat:@"%@%d",@"hello",55]; //通过另一个NSString对象创建一个字符串 NSString *str1=... 阅读全文

posted @ 2015-08-15 14:45 MrYude 阅读(110) 评论(0) 推荐(0) 编辑

2015年8月6日

NSTimer做一个小计时器

摘要: int i=0;int min=0;-(void)showTime{ if(i=10){ NSMutableString *time=[[NSMutableStringalloc] initWithFormat:@"%d:%d",min,i]; [showersetText:time]... 阅读全文

posted @ 2015-08-06 21:20 MrYude 阅读(108) 评论(0) 推荐(0) 编辑

IOS UI 代码创建UIButton,UITextField,UILabel

摘要: //add a Label UILabel *label=[[UILabelalloc]initWithFrame:CGRectMake(100,20,150, 40)]; [label setText:@"i am a label "]; label.font=[UIFontsystemFont... 阅读全文

posted @ 2015-08-06 21:12 MrYude 阅读(182) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8

导航