- 博客(11)
- 收藏
- 关注
原创 UISegmentedControl UITabBarController
//UITabBarControllerMainViewController *main = [[MainViewController alloc] init]; main.title = @"购物"; [main.tabBarItem initWithTabBarSystemItem:UITabBarSystemItemDownloads tag:4];
2014-07-31 15:14:59
440
转载 本地化 存储 字符串 数组 字典 复杂类对象
//// MainViewController.m// 数据持久化//// Created by yangtingting on 14-7-28.// Copyright (c) 2014年 灭神科技. All rights reserved.//#import "MainViewController.h"#i
2014-07-31 14:20:24
979
转载 iOS 数据库 sql语句 存放对象
//// DataBaseManager.m// 数据库系统//// Created by yangtingting on 14-7-29.// Copyright (c) 2014年 灭神科技. All rights reserved.//#import "DataBaseManager.h"#imp
2014-07-31 14:16:53
507
转载 iOS 存储本地
在iOS开发过程中,不管是做什么应用,都会碰到数据保存的问题。将数据保存到本地,能够让程序的运行更加流畅,不会出现让人厌恶的菊花形状,使得用户体验更好。下面介绍一下数据保存的方式:1.NSKeyedArchiver:采用归档的形式来保存数据,该数据对象需要遵守NSCoding协议,并且该对象对应的类必须提供encodeWithCoder:和initWithCoder:方法。前一个方法告诉系
2014-07-29 19:17:14
394
转载 iOS MBProgressHUD 特效 加载界面
开源中国iOS客户端学习——(七)MBProgressHUD特效分类: 菜鸟学iOS的笔记2013-01-16 13:55 10711人阅读 评论(9) 收藏 举报在开源中国iOS客户端中也用到了MBProgressHUD这个特效,主要作用为应用显示一个过渡的作用,常用于打开一个联网页面加载过程,防止出现假死现象,如果网速慢则告诉用户已经在很努力很努力的加载中。
2014-07-28 09:23:00
648
转载 iOS 画图context/QuartzCore(相关函数的解释)
0 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文 1 CGContextMoveToPoint 开始画线 2 CGContextAddLineToPoint 画直线 4 CGContextAddEllipseInRect 画一椭圆 4 CGContextSetLineCap设置线条终点形状 4 CGContextSetLin
2014-07-27 21:29:34
697
转载 iOS 画画板
Paths中的几个重要元素Pointsvoid CGContextMoveToPoint ( CGContextRef c, CGFloat x, CGFloat y);指定一个点成为current pointQuartz会跟踪current point一般执行完一个相关函数后,current point都会相应的改变.
2014-07-27 21:24:12
515
转载 iOS 数据请求 同步get 同步post 异步get 异步post
1 同步get请求- (IBAction)syncGETAction:(id)sender { // 同步GET请求 NSString *path =@"http://cdn.gq.com.tw.s3-ap-northeast-1.amazonaws.com/userfiles/images_A1/6954/2011100658141857.
2014-07-27 19:34:08
629
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人