2015年9月12日

UI 小结

摘要: UI控件出不来的原因 ————————————————————————————————1.frame的尺寸和位置对不对2.hidden(隐藏)是否为YES3.有没有添加到父控件中4.alpha是否nil,通知中心的注册通知没有销毁!程序不会蹦KVO应用程序主要应用场景:监听"模型属性"数据的变化从网... 阅读全文

posted @ 2015-09-12 17:42 li杨 阅读(117) 评论(0) 推荐(0)

2015年9月8日

IOS 网络基础

摘要: /*------------------------------------ 网络基础: 1.二进制数据流 --------------------------------*/客户端(Client):移动设备(手机/iPad等手持设备). 客户端一般就是前端/前台等等.iOS,android开发都... 阅读全文

posted @ 2015-09-08 00:05 li杨 阅读(150) 评论(0) 推荐(0)

2015年9月6日

IOS scrollView 的代理

摘要: // Copyright (c) 2015年 李杨. All rights reserved.//#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageVie... 阅读全文

posted @ 2015-09-06 23:00 li杨 阅读(321) 评论(0) 推荐(0)

IOS Block基本用法

摘要: 创建两个视图控制器,在第一个视图控制器中创建一个UILabel和一个UIButton,其中UILabel是为了显示第二个视图控制器传过来的字符串,UIButton是为了push到第二个界面。第二个界面的只有一个UITextField,是为了输入文字,当输入文字,并且返回第一个界面的时候,当第二个视... 阅读全文

posted @ 2015-09-06 20:43 li杨 阅读(664) 评论(0) 推荐(0)

IOS UI 中scrollView 基本用法

摘要: #import "ViewController.h"/*1.要有内容2.必须要指定contentSize,并且contentSize 要大于自己(scrollView)frame*/@interface ViewController ()@property (weak, nonatomic) IBO... 阅读全文

posted @ 2015-09-06 10:18 li杨 阅读(197) 评论(0) 推荐(0)

2015年9月5日

多线程 block中self 强引用问题

摘要: #import "ViewController.h"@interface ViewController ()// 定义一个全局的队列属性.方便在任何方法中都可以使用这个Queue@property (nonatomic,strong) NSOperationQueue *queue;// UI 控件... 阅读全文

posted @ 2015-09-05 23:37 li杨 阅读(912) 评论(0) 推荐(0)

多线程NSOperation使用方法

摘要: /*------------------------------ NSOperation使用 -----------------------------------*/重点:操作 NSOperation 和操作队列 NSOperationQueue!{ 1.NSOperation(操作)简介: ... 阅读全文

posted @ 2015-09-05 00:27 li杨 阅读(190) 评论(0) 推荐(0)

多线程GCD用法

摘要: /*------------------------------ GCD使用 1.队列和任务------------------------------------------*/重点:1."串行队列"? "并发队列"? 2.block?{ 1.GCD(Grand Central Dispatch... 阅读全文

posted @ 2015-09-05 00:20 li杨 阅读(114) 评论(0) 推荐(0)

多线程NSThread

摘要: /*--------------------------------------- 卡住主线程------------------------------------------*/重点:1.线程进程区别! 2.串行执行!{ 1. 问题演示 : 为什么在执行打印输出(执行耗时代码)的时候, UI... 阅读全文

posted @ 2015-09-05 00:10 li杨 阅读(130) 评论(0) 推荐(0)

导航