自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(41)
  • 收藏
  • 关注

原创 IOS学习 GCD 延时执行三种方法 并行/串行/主队列综合练习 队列组 shift+command+o快速查找

-(void)touchesBegan:(NSSetUITouch *> *)touches withEvent:(UIEvent *)event{       [selfdemo];}//延时执行-(void)demo{    //方法1 timer//    NSTimer *timer = [NSTimer timerWit

2016-03-31 23:35:18 3650

原创 IOS学习 GCD 基础 串行/并行/主线程、同步/异步

@implementation ViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view, typically from a nib.}-(void)touchesB

2016-03-30 23:48:20 2585

原创 IOS学习 多线程NSThread 消息循环(了解)涉及定时器

#import "ViewController.h"@interface ViewController (){    BOOL shouldKeepRunning;}@end@implementation ViewController- (void)viewDidLoad {    [super

2016-03-30 22:31:31 961

原创 IOS学习 info.plist 文件加两行代码 多线程NSThread/GCD 异步下载网络图片

编辑 info.plist,加入如下设置:    NSAppTransportSecurity            NSAllowsArbitraryLoads

2016-03-29 17:34:07 761

原创 IOS学习 多线程NSThread 共享变量 卖票

#import "ViewController.h"@interface ViewController ()//火车票@property (nonatomic,assign)int tickets;@property (nonatomic,strong)NSObject *obj;//nonatomic 非原子属性:多个线程可同时读取

2016-03-28 23:59:45 339

原创 ios学习 多线程NSThread 基本属性

- (void)viewDidLoad {    [superviewDidLoad];}- (void)touchesBegan:(NSSetUITouch *> *)touches withEvent:(UIEvent *)event{    [selfdemo2];}-(void)demo{   

2016-03-28 23:13:06 256

原创 IOS学习 AVAudioRecorder 录音 存储在沙盒中

#import "HomeViewController.h"#import  //添加框架文件@interface HomeViewController ()@property (nonatomic,strong)AVAudioRecorder *recorder;@end@implementation Ho

2016-03-27 23:20:39 1339

原创 IOS学习 沙盒位置,沙盒存储的三种方式:plist文件,偏好设置,归档

在Mac OS 10.10.5和Xcode7.2的环境下沙盒的位置:/Users/liaojianguo/Library/Developer/CoreSimulator/Devices/C07367C4-84A0-4CA2-9FFB-DAB3B7C8CB81/data/Containers/Data/Application/20D764F7-EAC2-4375-909B-99409

2016-03-27 23:17:56 3615 2

原创 IOS学习 collectionView 创建应用管理 涉及单独用类方法从plist文件中取数据

#import "HomeViewController.h"#import "AppCell.h"#import "AppModel.h"@interface HomeViewController ()UICollectionViewDataSource>//定义一个数组@property (nonatomic,strong)NSArra

2016-03-25 22:15:59 709

原创 IOS学习 collectionView 的创建

@implementation HomeViewControllerstatic NSString *identifier =@"collectionCell";- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loadin

2016-03-24 22:50:34 409

原创 IOS学习 autolayout 动画 与文件夹拖拽截图

@interface ViewController ()@property (weak,nonatomic) IBOutletUIView *redView;@property (weak,nonatomic) IBOutletNSLayoutConstraint *redTop; //绑定约束@end@implementatio

2016-03-23 23:50:12 484

原创 IOS学习 autolayout 自动布局 代码与界面设置截图

- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        UIView *blueView = [[UIViewalloc]init];//不用设置Frame    blueView.backg

2016-03-23 16:12:30 280

原创 IOS学习 autoresizing 屏幕适配 父子视图

@interface HomeViewController ()@property (nonatomic,retain)UIView *redView;@end@implementation HomeViewController- (void)viewDidLoad {    [superviewD

2016-03-22 23:31:00 331

原创 IOS学习 动画和绘画:UIView基础动画

@interface HomeViewController : UIViewController@property (weak, nonatomic) IBOutletUIView *myView;- (IBAction)startAnimation:(UIButton *)sender;@end

2016-03-21 23:53:45 240

原创 IOS学习 iPad控件:POP控件器,分割窗口、浮动窗口、模态视图的使用

@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    // Override point for customization after app

2016-03-21 00:20:19 2811

原创 IOS学习 Block语法的使用:Button、AlertView监听方法改写

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        BlockButton *btn = [[BlockButton

2016-03-19 23:53:59 306

原创 IOS学习 Block语法的使用:声明、创建、引用局部变量,使用block从后往前传值

#import "HomeViewController.h"typedef int(^Blokc)(int) ; //Block是类型@interface HomeViewController ()@end@implementation HomeViewController- (void)v

2016-03-19 22:40:42 858

原创 IOS学习 UITextField 属性和代理

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        UITextField *textField = [[UITex

2016-03-18 16:04:27 425

原创 IOS学习 UIPickerView UItextFiled 省市区 三联动输入

#import "HomeTableViewCell.h"@interface HomeViewController :UIViewControllerUITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,UIPickerViewDataSource,UIPickerViewDelegate>{    NSA

2016-03-17 22:24:45 420

原创 IOS学习 NSNavigationController 自定义:左右按钮、中间文字、背景图片

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        UIButton *button = [[UIButtona

2016-03-17 16:45:00 1601

原创 IOS学习 UIDatePicker 省市区 三联动

@interface HomeViewController : UIViewController@property (copy, nonatomic) NSString *state;@property (copy, nonatomic) NSString *city;@property (copy, nonatomic) NSString *d

2016-03-17 00:14:34 386

原创 IOS学习 UIDatePicker 包含时间格式转换

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        UIDatePicker *datePicker = [[UID

2016-03-16 15:56:15 1406

原创 IOS学习 触摸和手势 手势识别器:单击、双击、轻扫、滑动、长按、旋转

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        //单击    UITapGestureRecogniz

2016-03-15 14:12:00 349

原创 IOS学习 触摸和手势UITouch 捏合

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        touchView = [[UIViewalloc]init

2016-03-14 17:49:17 365

原创 IOS学习 触摸和手势UITouch 单击双击、移动视图

@interface HomeViewController : UIViewController{    UIView *touchView;    UITouch *touch;    NSInteger *tapcount;    CGPoint point;    UIView *movieView;}@end

2016-03-14 16:56:59 910

原创 IOS学习 UITableView 用谓词过滤

@interface HomeTableViewController :UITableViewControllerUITextFieldDelegate>{@private    NSArray      *_fontsArray;    NSArray      *_data;    UITextField  *_textField;}

2016-03-13 00:43:25 502

原创 ioS学习 UITableViewCell 增加、删除、移动

@implementation HomeTableViewController- (void)viewDidLoad {    [superviewDidLoad];        _fontsArray = [NSMutableArrayarrayWithArray:[UIFontfamilyNames]];    self.nav

2016-03-12 23:47:10 448

原创 iOS学习 UITableViewCell 三种定制方法

@implementation HomeTableViewController- (void)viewDidLoad {    [superviewDidLoad];}#pragma mark - Table view data source- (NSInteger)numberOfSectionsInTableView:(UIT

2016-03-12 00:31:44 1357

原创 IOS学习 UITableView 索引 涉及数组排序

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.        NSString *path = [[NSBundlemai

2016-03-11 00:51:42 347

原创 iOS学习 UITableView 单选

#import #define VIEW_WIDTH self.view.bounds.size.width#define VIEW_HEIGHT self.view.bounds.size.height@interface HomeViewController :UIViewControllerUITableViewDataSource,UITableViewDele

2016-03-10 22:28:21 335

原创 IOS学习 UITableView 单元格风格和修改单元格背景

@implementation HomeViewController- (void)viewDidLoad {    [superviewDidLoad];    // Do any additional setup after loading the view.    self.title =@"UITabelViewCell";  

2016-03-10 21:47:09 1079

原创 IOS学习 UITableView 委托方法

#import #define VIEW_WIDTH self.view.bounds.size.width#define VIEW_HEIGHT self.view.bounds.size.height#import "DetaiViewController.h"@interface HomeViewController :UIViewContro

2016-03-09 23:13:13 445

原创 IOS学习 UITableView 基本属性

#import #define VIEW_WIDTH self.view.bounds.size.width#define VIEW_HEIGHT self.view.bounds.size.height@interface HomeViewController :UIViewControllerUITableViewDataSource>{    UI

2016-03-08 23:32:13 260

原创 iOS学习 用scrollView 制作相册album 涉及双击事件

#import #define VIEW_WIDTH self.view.bounds.size.width#define VIEW_HEIGHT self.view.bounds.size.height#import "ImageScrollView.h"@interface HomeViewController :UIViewControllerUIScro

2016-03-08 00:27:49 288

原创 IOS学习 scrollView的单张图片缩放

- (void)initViewController{        //设置scrollview    _scrollView = [[UIScrollViewalloc]initWithFrame:CGRectMake(0,20,VIEW_WIDTH ,VIEW_HEIGHT)]; //屏幕宽度        [self.viewaddSub

2016-03-07 22:23:29 578

原创 IOS学习 scrollView,pageControl,tableView在同一页面上处理

@implementation MainViewController- (void)viewDidLoad {    [superviewDidLoad];    //设置scrollview    UIScrollView *_scrollView = [[UIScrollViewalloc]initWithFrame:CGRectMake(0

2016-03-07 21:44:05 1078

原创 IOS学习 scrollView的代理

- (void)initViewController{        //设置scrollview    _scrollView = [[UIScrollViewalloc]initWithFrame:CGRectMake(0,20,VIEW_WIDTH ,261)];  //屏幕宽度//    scrollView.backgroundColor

2016-03-07 16:29:57 218

原创 IOS学习 scrollView的基本属性

//总共图片数量#define kIMGCOUNT 4#define VIEW_WIDTH self.view.frame.size.width#define VIEW_HEIGHT self.view.bounds.size.height@interface HomeViewController :UIViewControllerUIScrollViewDel

2016-03-07 14:31:57 276

原创 IOS学习 模拟器上输入文本时,如何弹出键盘,显示中文,同一个模拟器有多个

显示中文:1.Project-->Info-->Localizations添加Chinese2.修改Target-->Info-->Localization native development region : China

2016-03-04 15:21:18 340

原创 IOS学习 Notification 用通知传值

#import #import "SecondViewController.h"#define kCLTN @"ChangLabelTextNotification"  //通知名#define VIEW_WIDTH self.view.bounds.size.width#define VIEW_HEIGHT self.view.bounds.size.heig

2016-03-04 14:41:54 302

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除