时光

Strive to be an excellent developer

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

摘要: 主要把在论坛中看到的好文章收集起来,有时间深读之,推荐使用Pocket**Xcode**+ [Xcode正确打开方式-Debuging](http://www.cocoachina.com/ios/20150225/11190.html) 教你如何正确使用Xcode进行断点调试**Animation... 阅读全文
posted @ 2015-02-28 11:00 朱东方 阅读(249) 评论(0) 推荐(0) 编辑

2015年4月5日

摘要: ```oc// Block 语法格式// ^[返回值类型] [参数列表] { 表达式 };// 例1^int (int a, int b) { return a + b;};// 例2 没有返回值,可省略返回值类型^ (int a, int b) { printf("%d", (a + ... 阅读全文
posted @ 2015-04-05 10:17 朱东方 阅读(213) 评论(0) 推荐(0) 编辑

2015年4月1日

摘要: 转自 [http://www.biemmeitalia.net/blog/android-network-configuration/](http://www.biemmeitalia.net/blog/android-network-configuration/)通过shell命令设置(获取)IP... 阅读全文
posted @ 2015-04-01 12:18 朱东方 阅读(25389) 评论(0) 推荐(0) 编辑

2015年3月30日

摘要: 转自 [http://stackoverflow.com/a/22394605/3355097](http://stackoverflow.com/a/22394605/3355097)把ONLY_ACTIVE_ARCH改成NO就好了![http://i.imgur.com/e918pG7.png]... 阅读全文
posted @ 2015-03-30 08:26 朱东方 阅读(177) 评论(0) 推荐(0) 编辑

2015年3月29日

摘要: ```oc// NSString to NSDataNSString *str = @"http://cnblogs.com/zhudongfang";NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding];// NSData to N... 阅读全文
posted @ 2015-03-29 09:21 朱东方 阅读(1636) 评论(0) 推荐(0) 编辑

2015年3月28日

摘要: ```ocNSString *urlString = [NSString stringWithFormat:@"http://cnblogs.com/时光"];// 如果url中有中文,必须encodeNSString *encodedUrlString = [urlString st... 阅读全文
posted @ 2015-03-28 16:04 朱东方 阅读(216) 评论(0) 推荐(0) 编辑

2015年3月20日

摘要: 感谢 文顶顶感谢 ashamp foundation框架结构体 Foundation框架字符串 Foundation框架集合 iOS开发UI... 阅读全文
posted @ 2015-03-20 17:03 朱东方 阅读(3395) 评论(3) 推荐(6) 编辑

2015年3月17日

摘要: 重写ViewController的`preferStatusBarHidden`方法```oc- (BOOL)prefersStatusBarHidden { return YES;}``` 阅读全文
posted @ 2015-03-17 07:58 朱东方 阅读(312) 评论(0) 推荐(0) 编辑

2015年3月16日

摘要: 1,初次进入隐藏软键盘(多种方式)```javagetWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); ```2,点击EditText获取焦点,但不弹出软键盘```javapub... 阅读全文
posted @ 2015-03-16 15:36 朱东方 阅读(736) 评论(0) 推荐(0) 编辑

摘要: 引自 [http://nshipster.cn/nil/](http://nshipster.cn/nil/)```objective-c// 举个例子,这个表达...if (name != nil && [name isEqualToString:@"Steve"]) { ... }// …可以被... 阅读全文
posted @ 2015-03-16 13:37 朱东方 阅读(214) 评论(0) 推荐(0) 编辑

2015年3月12日

摘要: 第一种 ```java// 会弹出[选择线路]提示框public void makeCall(String phoneNumber) { Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("... 阅读全文
posted @ 2015-03-12 09:38 朱东方 阅读(159) 评论(0) 推荐(0) 编辑