摘要: #import "ViewController.h" @interface ViewController () <UISearchBarDelegate> @property (weak, nonatomic) IBOutlet UIWebView *webView; @property (weak 阅读全文
posted @ 2016-03-29 22:11 lance.xiang 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #import "MViewController.h" /** 需求分析 1. UIImageView显示图片 2. UIImage模拟从网络上下载 3. NSString记录图片路径 小结 方法,看起来很简单, 1> 不能够自动回收线程,如果并发数量多,会建立大量的子线程! 2> 使用NSThre 阅读全文
posted @ 2016-03-29 22:00 lance.xiang 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #import <Foundation/Foundation.h> @interface DemoObj : NSObject // 共享实例,便于其他类访问 + (instancetype)sharedDemoObj; @end #import "DemoObj.h" @implementatio 阅读全文
posted @ 2016-03-29 21:57 lance.xiang 阅读(83) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UITextView *infoText; /** 在iOS中还有一种锁的功能,原子锁 —— 多读单写的锁(128 阅读全文
posted @ 2016-03-29 21:53 lance.xiang 阅读(1854) 评论(0) 推荐(0) 编辑
摘要: #import <Foundation/Foundation.h> @interface DemoObj : NSObject - (void)demoBlockOp; @end #import "DemoObj.h" @interface DemoObj() @property (nonatomi 阅读全文
posted @ 2016-03-29 21:51 lance.xiang 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"%@", [N 阅读全文
posted @ 2016-03-29 21:48 lance.xiang 阅读(134) 评论(0) 推荐(0) 编辑
摘要: // #import "ViewController.h" @interface ViewController () @end @implementation ViewController /* >1 队列和线程的区别: 队列:是管理线程的,相当于线程池,能管理线程什么时候执行。 队列分为串行队列和 阅读全文
posted @ 2016-03-29 21:39 lance.xiang 阅读(197) 评论(0) 推荐(0) 编辑
摘要: #import "MXCircleView.h" @implementation MXCircleView - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { // Initializ 阅读全文
posted @ 2016-03-29 21:25 lance.xiang 阅读(118) 评论(0) 推荐(0) 编辑
摘要: @interface UIView : UIResponder<NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem> /** * 通过一个frame来初始化一个UI控件 */ - (id)initWithFrame:(CGRect 阅读全文
posted @ 2016-03-29 20:55 lance.xiang 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #import "MXAppDelegate.h" @implementation MXAppDelegate /** * app启动完毕后就会调用 */ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithO 阅读全文
posted @ 2016-03-29 20:49 lance.xiang 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #import <Foundation/Foundation.h> #import "Person.h" #import "NewsCompany.h" int main(int argc, const char * argv[]) { @autoreleasepool { // 1.初始化机构 N 阅读全文
posted @ 2016-03-29 20:39 lance.xiang 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #import "MXViewController.h" @interface MJViewController () <UIScrollViewDelegate> @property (weak, nonatomic) IBOutlet UIScrollView *scrollView; @pro 阅读全文
posted @ 2016-03-29 20:33 lance.xiang 阅读(84) 评论(0) 推荐(0) 编辑
摘要: suiling 分类:iOS开发 来源:刘小壮 的简书 移动端地图技术 移动端地图技术 招聘信息: iOS 开发工程师 iOS高级工程师 java高级软件工程师 iOS软件工程师 Web后端高级开发工程师 高级PHP开发工程师 iOS开发工程师 高级iOS手机应用软件开发工程师(培训讲师) 高级Co 阅读全文
posted @ 2016-03-29 19:59 lance.xiang 阅读(2715) 评论(0) 推荐(1) 编辑
摘要: By Bohdan Orlov on 21 Mar 2016 - 0 Comments iOS FYI: Slides from my presentation at NSLondon are available here. Feeling weird while doing MVC in iOS? 阅读全文
posted @ 2016-03-29 16:08 lance.xiang 阅读(258) 评论(0) 推荐(0) 编辑