- 博客(63)
- 收藏
- 关注
原创 iOS--版本更新
这个只要是app涉及到维护,都避免不了会用到,可以说这个是几乎每个app都会用到的功能,做起来也很简单,理论就是比较自己手机版本和AppStore版本号,不一样就需要更新喽(你手机版本号是不可能比AppStore还大,所以不一样就是有新版本) 获取一下当前自己的版本号:NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDicti
2015-12-24 14:54:16 472
原创 shareSDK分享功能
最近项目中用到了分享这一功能,很自然的就想到了shareSDK,官方下载下来发现好大,70+M,不过看着官方文档还算详尽,算了,就它了。 和友盟差不多,前期的准备工作都需要去注册应用,在对应开放平台进行注册,获取key Secret,不要怕麻烦,照着各大平台要求一步步做下去吧,我光注册就花费了半上午,除了微信,需要的注册信息都好多,新浪微博注册app有个截图展示,千万要有一张和新浪微博沾边的,否则
2015-12-22 10:15:17 1099
原创 CoreData
CoreData对于开发者来说是比较方便的,但是它的效率很低,比起sqlite没有它的执行效率高.苹果也在推CoreData但是现在用的还不是太多,但是对于程序员来说,CoreData是比较简单方便的.下面我们一起来学习一下CoreData:首先我们要创建工程的时候勾选创建CoreData选项然后新建一个继承与NSObject的类CoreDataManager引入头文件#i
2015-10-30 11:54:01 392
原创 iOS UI21_多线程
//// MyOperation.m// UI21_多线程//// Created by dllo on 15/8/26.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MyOperation.h"@implementation MyOperation-(void)main{ NSIn
2015-08-27 08:34:54 704
原创 iOS UI19_数据库
//// Student.h// UI19_数据库//// Created by dllo on 15/8/24.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import <Foundation/Foundation.h>@interface Student : NSObject@property(nona
2015-08-25 08:37:57 673
原创 iOS UI16_数据持久化
//// Student.h// UI16_数据持久化//// Created by dllo on 15/8/19.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import <Foundation/Foundation.h>#pragma mark 如果想实现归档和反归档的操作需要先签订一个协议NSCo
2015-08-20 09:12:42 738
原创 iOS UI14_GET-POST
//// ViewController.m// UI14_GET-POST//// Created by dllo on 15/8/17.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "ViewController.h"
2015-08-18 09:13:40 610
原创 iOS UI13_数据解析XML_,JSON
- (IBAction)parserButton:(id)sender { parserXML *parser =[[parserXMLalloc] init]; [parserstartParser]; //遍历学生的姓名 for (Student *stuin parser.stuArr) { NSLog(@"%@
2015-08-17 08:43:27 638
原创 iOS UI11_BLOCK传值
//// MainViewController.m// UI11_block练习//// Created by dllo on 15/8/12.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import "SecondViewController.
2015-08-13 08:46:03 732
原创 iOS UI11_UITabBar
//// AppDelegate.m// UI11_UITabBar//// Created by dllo on 15/8/12.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"#import "FirstViewController.h"#import "Se
2015-08-13 08:39:49 1019
原创 iOS UI10_tableView的编辑
//// MainViewController.m// UI10_tableView的编辑//// Created by dllo on 15/8/11.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"@interface MainViewControl
2015-08-12 14:10:20 1172
原创 iOS UI10_带分区的省市区
//// MainViewController.m// UI10_带分区的省市区//// Created by dllo on 15/8/11.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import "SecondViewController.
2015-08-12 14:08:02 1120
原创 iOS UI09_自定义cell
//// MyCell.h// UI09_自定义cell//// Created by dllo on 15/8/10.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import <UIKit/UIKit.h>@interface MyCell : UITableViewCell#warning 现在要给自
2015-08-11 08:43:37 665
原创 iOS UI09_多种Tableview
//// MainViewController.m// UI09_多种Tableview//// Created by dllo on 15/8/10.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"@interface MainViewControll
2015-08-11 08:38:16 596
原创 iOS UI_电话本
//// MainViewController.m// 电话本//// Created by dllo on 15/8/7.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import "SecondViewController.h"#import
2015-08-10 08:51:26 1035
原创 iOS UI_相册
//// MainViewController.m// 相册//// Created by dllo on 15/8/6.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import "SecondViewController.h"@interfa
2015-08-10 08:45:50 611
原创 iOS UI08_tableView省市区字典数组
北京 1 北京市 1 西城区 1 东城区 2 崇文区 3 宣武区 4 朝阳区 5 丰台区 6 石景山区 7 海淀区 8 门头沟区 9 房山区 10 通州区 11 顺义区 12 昌平区 13 大兴区 14 怀柔区 15 平谷区 16 密云区 17 延庆区
2015-08-10 08:35:41 1342
原创 iOS UI08_TableView界面传值
实现两个界面之间内容的传递//// MainViewController.m// UI08_TableView界面传值//// Created by dllo on 15/8/7.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import "Sec
2015-08-08 10:46:48 905 2
原创 iOS UI08_UITableView
(http://img.blog.csdn.net/20150808103801391)//// MainViewController.m// UI08_UITableView//// Created by dllo on 15/8/7.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainV
2015-08-08 10:39:12 580
原创 iOS UI07_界面传值
//// MainViewController.m// UI07_界面传值//// Created by dllo on 15/8/6.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import "SecondViewController.h"/
2015-08-07 08:43:16 674
原创 iOS UI07_导航视图控制器
//// MainViewController.m// UI07_导航视图控制器//// Created by dllo on 15/8/6.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import "SecondViewController.h
2015-08-07 08:36:06 692
原创 iOS UI06_UIPageControl
//// MainViewController.m// UI06_UIPageControl//// Created by dllo on 15/8/5.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#define WIDTH self.view.f
2015-08-06 15:04:10 517
原创 iOS UI06_UIScorollView
//// MainViewController.m// UI06_UIScorollView//// Created by dllo on 15/8/5.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"//定义两个宏,分别为屏幕尺寸的宽,高#defi
2015-08-06 15:02:33 1298
原创 iOS UI05_Control
毛玻璃效果 动态图 音频 滑块 点击条//// MainViewController.m// UI05_Control//// Created by dllo on 15/8/4.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"#import
2015-08-05 08:45:38 416
原创 iOS UI05_手势识别器
手势:点击,长按,旋转,捏合,拖拽,清扫,清扫的方向//// MainViewController.m// UI05_手势识别器//// Created by dllo on 15/8/4.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "MainViewController.h"@interfa
2015-08-05 08:41:32 502
原创 iOS UI04_Target-Action
//// MyButton.h// UI04_Target-Action//// Created by dllo on 15/8/3.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import <UIKit/UIKit.h>@interface MyButton : UIView//通过MyButton实现
2015-08-04 21:06:13 463
原创 iOS UI04_Delegate
//// AppDelegate.m// UI04_Delegate//// Created by dllo on 15/8/3.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"#import "MainViewController.h"@interface Ap
2015-08-04 20:05:03 371
原创 iOS UI04_Touch
1.实现的是微信的摇一摇 2.实现的是View随着触摸能够在视图中进行移动,还有是通过触碰实现颜色变换,一碰颜色就会得到改变//// AppDelegate.m// UI04_Touch//// Created by dllo on 15/8/3.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import
2015-08-03 20:07:14 509
原创 iOS UI03_登陆+注册 UI1~3系统归纳
完成登陆系统(登陆、注册、找回密码),使用容器视图控制器实现。定义容器视图控制器ContainerViewController,指定为window的根视图控制器。定义LoginViewController、RegistViewController、PasswordViewController,三个视图控制器的根视图添加到容器视图控制器的根视图。//// AppDelegate.m//
2015-08-03 08:33:02 905 3
原创 iOS UI03_UIViewController视图控制器
//// AppDelegate.m// UI03_UIViewController视图控制器//// Created by dllo on 15/7/31.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"
2015-08-01 08:32:13 596
原创 iOS UI03_LTView
//// LTView.h// OC03_LTView//// Created by dllo on 15/7/31.// Copyright (c) 2015年 dllo. All rights reserved.//#import @interface LTView :UIViewUITextF
2015-08-01 08:29:08 505
原创 iOS UI02.2_UIView,UILabel,UIButton,UItextfield归纳
//// AppDelegate.m// UI02作业//// Created by dllo on 15/7/30.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"@interface
2015-07-31 08:49:59 532
原创 iOS UI02_Button和Textfield
//// AppDelegate.m// //// Created by dllo on 15/7/30.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"@interface AppDel
2015-07-31 08:45:18 1165
原创 iOS UI02_UITextField
//// AppDelegate.m// UI02_//// Created by dllo on 15/7/30.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"@interface
2015-07-31 08:42:28 407
原创 iOS UI02_UIButton
//// AppDelegate.m// UI02_UIButton//// Created by dllo on 15/7/29.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"@inte
2015-07-31 08:38:48 438
原创 iOS UI01_色彩变换
//// AppDelegate.m// 作业_彩色变换//// Created by dllo on 15/7/29.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"@interface
2015-07-30 22:18:50 488
原创 iOS UI01_Label
@implementation AppDelegate-(void)dealloc{ [_window release]; [superdealloc];}- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary
2015-07-30 08:49:22 485
原创 iOS UI01_UIView
//// AppDelegate.m// UI01_UIView//// Created by dllo on 15/7/29.// Copyright (c) 2015年 zhozhicheng. All rights reserved.//#import "AppDelegate.h"@interf
2015-07-30 08:40:55 548
原创 iOS OC10_Block
内存五大区域 //栈 int a=10; NSLog(@"%p",a); //堆 int *p=malloc(40); NSLog(@"%p",p); //全局 static int b=10; NSLog(@"%p",b); //常量 char *str="iphone"; NSLog(@"%p",str
2015-07-28 19:42:32 543
原创 iOS OC08,09_内存管理
//管理内存有三种方式, //1.是垃圾回收,java常见的管理内存的方法,系统来检测对象是否被使用,是否被释放 //2.MRC手动管理引用计数,iOS管理内存的方式,程序员通过手动的方式来管理对象是否被释放 //3.ARC自动管理引用计数,基于MRC,系统自动的管理内存,以后我们还是先使用MRC,培养管理内存的习惯对象被创建出来之后他的引用计数retainCount就变成1
2015-07-27 19:18:53 583 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人