代码改变世界

IOS中UITableview中封装九宫格

2013-08-06 14:56 by 甘超波, 2530 阅读, 0 推荐, 收藏, 编辑
摘要:第一步引入SecondNav目录即可 第二步引入头文件 #import "DIYTableView.h" #import "invoiceInfo.h" 实现协议 DIYButtonDelegate - (void)viewDidLoad{ [super viewDidLoad]; ... 阅读全文

ios中滚动页面

2013-08-06 09:39 by 甘超波, 1477 阅读, 0 推荐, 收藏, 编辑
摘要:- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { int width=frame.size.width; int height=frame.... 阅读全文

ios中ASIHTTPRequst的封装

2013-08-05 17:08 by 甘超波, 978 阅读, 0 推荐, 收藏, 编辑
摘要:#import #import "ASIHTTPRequest.h"#import "ASIDownloadCache.h"typedef void (^MyBlock)(UIImage *image);@interface AsyncDownLoading : NSObject+(id)Sha... 阅读全文

ios中asihttprequest 下载缓存

2013-08-05 16:27 by 甘超波, 1715 阅读, 0 推荐, 收藏, 编辑
摘要:asi中下载缓存第一种方法 #import #import "ASIHTTPRequest.h"#import "ASIDownloadCache.h"@interface ViewController : UIViewController- (IBAction)click:(id)sender... 阅读全文

ios中第三方库归结

2013-08-04 11:27 by 甘超波, 291 阅读, 0 推荐, 收藏, 编辑
摘要:1;uiscrollview 折叠展开中不包含tablecell。展开列表效果 Collapse Click () https://github.com/bennyguitar/CollapseClick展开中包含tablecell。(暂无)2:导航栏 加入分段SVSegmentedControl()3:网易ZUUIRevealController 阅读全文

ios中要在tableview中添加事件的方法

2013-08-02 16:42 by 甘超波, 1680 阅读, 0 推荐, 收藏, 编辑
摘要://触摸tableview背景响应事件。 UIControl *bgcontrol = [[UIControl alloc]initWithFrame:self.tableView_typeList.backgroundView.bounds]; [bgcontrol add... 阅读全文

ios中键盘处理适合ipad 和iphone

2013-08-02 16:32 by 甘超波, 421 阅读, 0 推荐, 收藏, 编辑
摘要:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasShown:) ... 阅读全文

ios中LeveyPopListView 弹出view的用法

2013-08-02 14:15 by 甘超波, 905 阅读, 0 推荐, 收藏, 编辑
摘要:下载地址 https://github.com/levey/LeveyPopListView是arc, 如果是非arc项目要设置一下 方法 选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。如何在未使用arc的... 阅读全文

ios中VRGCalendarView日历控件

2013-08-02 12:51 by 甘超波, 3671 阅读, 0 推荐, 收藏, 编辑
摘要:http://pan.baidu.com/share/link?shareid=4166002480&uk=923776187 官网https://github.com/TjeerdVurig/Vurig-Calendar #import #import "VRGCalendarView.h"... 阅读全文

ios中MKHorizMenu用法

2013-08-02 09:05 by 甘超波, 1072 阅读, 0 推荐, 收藏, 编辑
摘要:下载地址 https://github.com/MugunthKumar/MKHorizMenuDemo直接 加入MKHorizMenu目录即可 下载包地址 http://pan.baidu.com/share/link?shareid=2872269045&uk=923776187////... 阅读全文

ios中封装网络和tableview的综合运用

2013-08-01 17:22 by 甘超波, 3581 阅读, 1 推荐, 收藏, 编辑
摘要:1:封装网络请求 类 #import #import "ASIFormDataRequest.h"#import "Reachability.h"@protocol NetWorkDelegate;@interface JSNetWord : NSObject+(id)ShareNetwork;... 阅读全文

ios中core Plot (2)

2013-08-01 14:02 by 甘超波, 357 阅读, 0 推荐, 收藏, 编辑
摘要:#import "ViewController.h"@interface ViewController ()//指定要画得view@property(nonatomic,assign)CPTGraphHostingView *hostview;//指定画布@property(nonatomic,... 阅读全文

ios中NSObject分类(2)

2013-08-01 12:46 by 甘超波, 2086 阅读, 0 推荐, 收藏, 编辑
摘要:#import UIColor * rgb(int r, int g, int b);UIColor * rgbA(int r, int g, int b, float a);UIColor * rgbweb(int rgbval);@interface NSObject (Utilty)//... 阅读全文

ios中NSObject分类

2013-08-01 12:41 by 甘超波, 1311 阅读, 0 推荐, 收藏, 编辑
摘要:#import #define BUNDLE_PATH_IMAGENAME(c) [[NSBundle mainBundle] pathForResource:c ofType:nil]@interface NSObject (UICateGory)@end@interface UILabel ... 阅读全文

ios 中UIViewController的分类

2013-08-01 12:39 by 甘超波, 1930 阅读, 0 推荐, 收藏, 编辑
摘要:#import #define TOPVIEWTAG 0x10000 // 导航栏的图片@interface UIViewController (Chnbs)-(void)setupTopNavigationView;-(void)resizeNavigationView;-(CGRect)C... 阅读全文

ios core plot设置xy坐标

2013-07-31 21:10 by 甘超波, 3248 阅读, 1 推荐, 收藏, 编辑
摘要:#import "ViewController.h"@interface ViewController ()//要绘制基于x,y轴的图形@property(nonatomic,retain)CPTXYGraph *graph;@property(nonatomic,retain)NSMutabl... 阅读全文

ios中PagedFlowView的用法

2013-07-31 11:23 by 甘超波, 2473 阅读, 0 推荐, 收藏, 编辑
摘要:下载地址 引入PagedFlowView.h PagedFlowView.m文件 #import #import "PagedFlowView.h"@interface MyViewController : UIViewController@end#import "MyViewControlle... 阅读全文

ios中网络请求缓存

2013-07-30 21:38 by 甘超波, 1511 阅读, 0 推荐, 收藏, 编辑
摘要:#import #import "ASIFormDataRequest.h"@protocol NetWorkdelegate;@interface JSNetWork : NSObject+(JSNetWork *)shareNetWork;-(void)JsNetWordWithConnec... 阅读全文

ios中调用摄像头

2013-07-29 18:31 by 甘超波, 14133 阅读, 0 推荐, 收藏, 编辑
摘要:@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loadi... 阅读全文

ios中封装网络请求类

2013-07-25 08:50 by 甘超波, 11203 阅读, 0 推荐, 收藏, 编辑
摘要:#import "JSNetWork.h"//asiHttpRequest#import "ASIFormDataRequest.h"//xml 的解析#import "UseXmlParser.h"//判断是否联网#import "Reachability.h"//sbJson,判断json的... 阅读全文
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页