会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
鸿鹄当高远
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
下一页
2015年12月30日
iOS PresentViewControlle后,直接返回根视图
摘要: 在开发中:用[self presentViewController:VC animated:YES completion:nil];实现跳转,多次跳转后,直接返回第一个。例如:A presentViewController B B presentViewController C ...
阅读全文
posted @ 2015-12-30 14:09 鸿鹄当高远
阅读(5047)
评论(0)
推荐(0)
2015年12月25日
NSMutableString 常用操作
摘要: //字符串的创建 //在可变字符串中 空字符串就有意义 NSMutableString *mString = [[NSMutableString alloc]init]; NSLog(@"mString:%@",mString); ...
阅读全文
posted @ 2015-12-25 17:56 鸿鹄当高远
阅读(603)
评论(0)
推荐(0)
NSString 的常用操作
摘要: NSString *testStr01=@"HelloWord"; NSString *testStr02=[testStr01 substringToIndex:5];//取头(从头到哪),to不包括下标内容 NSString *testStr03=[t...
阅读全文
posted @ 2015-12-25 17:46 鸿鹄当高远
阅读(639)
评论(0)
推荐(0)
2015年12月23日
iOS 获取网络状态
摘要: 在iOS开发者,获取网络状态比较常用-(NSString *)getNetWorkStates{ UIApplication *app = [UIApplication sharedApplication]; NSArray *children = [[[app valueFor...
阅读全文
posted @ 2015-12-23 18:29 鸿鹄当高远
阅读(622)
评论(0)
推荐(1)
Objective-C 排序
摘要: 在Objective-C中,排序分为:1、Foundation框架中的对象排序2、自定义对象排序例子:每个学生都有一个成绩score属性,根据成绩score对学生排序自定义对象 Student.hStudent.mmain.m#import #import "Student.h"int main(i...
阅读全文
posted @ 2015-12-23 11:33 鸿鹄当高远
阅读(857)
评论(0)
推荐(0)
2015年12月22日
Objective-C 工厂方法
摘要: 类方法用来创建对象的方法就是工厂方法1、无参工厂方法 创建对象,并给属性一个默认值。//无参工厂方法实现+(Student*)student{ return [[Student alloc]init];}2、有参工厂方法 2.1.要依赖有参的初始化方法 -(id)initWithAge:(...
阅读全文
posted @ 2015-12-22 17:08 鸿鹄当高远
阅读(450)
评论(0)
推荐(0)
Objective-C 关键字:retain, assgin, copy, readonly,atomic,nonatomic
摘要: 声明式属性的使用:声明式属性叫编译期语法@property(retain,nonatomic)Some *s;@property(参数一,参数二)Some *s;参数1:retain:修饰引用(对象)数据类型 assgin:修饰基本数据类型(默认) copy:一些对象需要复制才能使用NSString...
阅读全文
posted @ 2015-12-22 15:40 鸿鹄当高远
阅读(432)
评论(0)
推荐(0)
iOS UINavigationController的使用
摘要: NavigationController,又称导航控制器。是iOS开发中比较常用的一种容器ViewController,常用于页面的管理和切换。在开发中,NavigationController常常和UITabBarController一起使用。如下图,系统语言设置里面的顶部就是一个导航控制器。1、...
阅读全文
posted @ 2015-12-22 15:12 鸿鹄当高远
阅读(448)
评论(0)
推荐(0)
iOS UITabBarController的使用
摘要: UITabBarController 和 UINavigationController 几乎是iOS APP的标配。UITabBarController分栏(标签栏)控制器, 和UINavigationController导航控制器一样,都是用来管理视图控制器的容器类型的控制器。1、UITabBar...
阅读全文
posted @ 2015-12-22 15:10 鸿鹄当高远
阅读(10966)
评论(0)
推荐(0)
2015年12月21日
iOS UISearchController的使用
摘要: 在iOS9中,UISearchDisplayController 已经被UISearchController替代。搜索框是一种常用的控件。假设我们要满足下图的需求,产生100个“数字+三个随机字母”,然后搜索包含某个字母的结果。那么,该怎么做呢?#import "ViewController.h"@...
阅读全文
posted @ 2015-12-21 17:12 鸿鹄当高远
阅读(10734)
评论(0)
推荐(1)
上一页
1
···
22
23
24
25
26
27
28
29
30
下一页
公告