摘要:
//使用tableview来进行布局checkBox.便于全选,全不选//radiobutton 适合用RadioButton#import @interface CheckView : UIView- (id)initWithFrame:(CGRect)frame Data:(NSArray ... 阅读全文
随笔档案-2013年08月
ios中radiobutton
2013-08-30 08:51 by 甘超波, 4584 阅读, 收藏, 编辑
摘要:
#import @protocol RadioButtonExtDelegate;@interface RadioButtonExt : UIView- (id)initWithFrame:(CGRect)frame data:(NSArray *)data ;@property(nonatom... 阅读全文
ios中 radioButton和DataPIcker,九宫格封装好使用
2013-08-29 17:29 by 甘超波, 1877 阅读, 收藏, 编辑
摘要:
下载地址http://pan.baidu.com/share/link?shareid=2894506499&uk=923776187 引用这几个文件 radiobutton。封装好单选按钮 DataPicker 封装好选择器 jiugongge 九宫格 commonButton 这个是公用的bu... 阅读全文
ios中广告滚动页面(uiscrollview)
2013-08-27 09:36 by 甘超波, 3215 阅读, 收藏, 编辑
摘要:
展示功能 第一步 引入 “EScrollerView.h”,EScrollerView.m"文件 用法 NSArray *imgarr=@[@"1.jpg",@"2.jpg",@"3.jpg"]; NSArray *titlearr=@[@"标题一",@"标题二",@"标题三"]; E... 阅读全文
ios中图片旋转
2013-08-27 08:53 by 甘超波, 23799 阅读, 收藏, 编辑
摘要:
@interface ViewController (){ UIImageView *_imageview; BOOL flag;}@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad... 阅读全文
ios中通过过RGB绘制图片
2013-08-26 10:10 by 甘超波, 1603 阅读, 收藏, 编辑
摘要:
+ (UIImage *) ImageWithColor: (UIColor *) color frame:(CGRect)aFrame{ aFrame = CGRectMake(0, 0, aFrame.size.width, aFrame.size.height); UIGrap... 阅读全文
ios中项目
2013-08-23 18:32 by 甘超波, 366 阅读, 收藏, 编辑
摘要:
上一个版本http://pan.baidu.com/share/link?shareid=2183244558&uk=923776187 下载地址 http://pan.baidu.com/share/link?shareid=2165940263&uk=923776187 v.2下载 http:... 阅读全文
ios中base64编码
2013-08-23 12:54 by 甘超波, 9663 阅读, 收藏, 编辑
摘要:
参考文章:其中文章的:http://blog.csdn.net/ztp800201/article/details/9470065 下载包 其中 包括GTMBase包下载地址 http://pan.baidu.com/share/link?shareid=928474681&uk=92377... 阅读全文
ios中摄像头和图片调用
2013-08-23 10:35 by 甘超波, 352 阅读, 收藏, 编辑
摘要:
推荐文章 http://www.xuanyusong.com/archives/1493 http://blog.csdn.net/ryantang03/article/details/7830996 阅读全文
ios中xml和html解析(封装)
2013-08-22 18:38 by 甘超波, 5183 阅读, 收藏, 编辑
摘要:
下载地址 http://pan.baidu.com/share/link?shareid=2902188921&uk=923776187 GDataXML和TFHpple配置是一样的(配置方式参考http://blog.csdn.net/ryantang03/article/details/7868... 阅读全文
ios中GDataXML解析XML文档
2013-08-22 11:52 by 甘超波, 3835 阅读, 收藏, 编辑
摘要:
参考文章http://blog.csdn.net/ryantang03/article/details/7868246 适合解析一个节点多个属性要用GDataXml 格式如下 > NSString *path=[[NSBundl... 阅读全文
ios中布局(推荐一)
2013-08-21 17:00 by 甘超波, 1155 阅读, 收藏, 编辑
摘要:
- (void)viewDidLoad{ [super viewDidLoad]; NSArray *data=@[@"标题一",@"标题二",@"标题三",@"标题四"]; CGRect leftRect,rowRect; CGRectDivide(self.v... 阅读全文
ios中地图
2013-08-21 13:35 by 甘超波, 1009 阅读, 收藏, 编辑
摘要:
参考文章 http://blog.csdn.net/tangaowen/article/details/6527901 http://www.cnblogs.com/tangbinblog/archive/2012/07/11/2586715.html http://www.cocoachin... 阅读全文
ios中地图定位
2013-08-20 20:50 by 甘超波, 348 阅读, 收藏, 编辑
摘要:
#import #import @interface ViewController : UIViewController@property (retain, nonatomic) IBOutlet UITextField *latTxt;@property (retain, nonatomic... 阅读全文
ios中文件下载(带缓存)
2013-08-16 14:36 by 甘超波, 6252 阅读, 收藏, 编辑
摘要:
使用asiHttPRequst框架 封装下载类 #import #define FILESDOWNLOADCOMPLETE @"FilesDownloadComplete" // 文件下载完成@interface AsynchDownloadFile : NSObject+(AsynchDo... 阅读全文
ios中tableview网封装(viewcontroller封装)常用的
2013-08-16 09:43 by 甘超波, 2990 阅读, 收藏, 编辑
摘要:
下载地址http://pan.baidu.com/share/link?shareid=3657500168&uk=923776187 使用框架 1:asIHttpRequest库 2;SBJSON 3::英文原文和类库下载地址:https://github.com/emreberge/EGOTa... 阅读全文
ipad开发小结
2013-08-15 16:48 by 甘超波, 590 阅读, 收藏, 编辑
摘要:
项目小结1:布局的时候最后要用CGRectDivi..2:控制器的生命周期---->(init-->(当self.view==nil调用 loadView viewdidload)-->viewwillappear-->viewdidappear-->viewwilldisappear... 阅读全文
ios tableview分组
2013-08-13 21:59 by 甘超波, 13107 阅读, 收藏, 编辑
摘要:
//// ViewController.m// UISCrollerviewTest//// Created by ganchaobo on 13-8-10.// Copyright (c) 2013年 ganchaobo. All rights reserved.//#import "... 阅读全文
los中预览文件
2013-08-12 14:32 by 甘超波, 418 阅读, 收藏, 编辑
摘要:
#import #import @interface ViewController : UIViewController- (IBAction)click:(id)sender;@end #import "ViewController.h"@interface ViewController... 阅读全文
ios中一级导航
2013-08-08 18:22 by 甘超波, 361 阅读, 收藏, 编辑
摘要:
效果图 第一步先下载文件http://pan.baidu.com/share/link?shareid=2148445651&uk=9237761877 将目录引入到xcode中 在xcode 使用 //第一步引用头文件 #import "FirstNavView.h" //第二步实现代理 Fi... 阅读全文
ios中封装九宫格的使用(二级导航)
2013-08-08 18:00 by 甘超波, 513 阅读, 收藏, 编辑
摘要:
效果图 一般用于导航功能 第一步下载http://pan.baidu.com/share/link?shareid=1824940819&uk=923776187 第二步 把下图内容放在你的xcode中 项目中用法 //第一步引用头文件 #import "DIYTableView.h" //第... 阅读全文
ios中自定义button
2013-08-07 17:58 by 甘超波, 14133 阅读, 收藏, 编辑
摘要:
自定义button #import #define KFont 15@interface DIYButton : UIButton@property(nonatomic,copy)NSString *ctrlName;@end#import #define KFont 15@interface ... 阅读全文
ios中自定义checkbox
2013-08-07 09:36 by 甘超波, 2186 阅读, 收藏, 编辑
摘要:
//自定义button#import @interface CKButton : UIButton@end#import "CKButton.h"#define KTitleWidth 0.6#define KPadding 0.1#define KImageWidth (1-KTitleWid... 阅读全文
ios中推送
2013-08-06 18:52 by 甘超波, 1541 阅读, 收藏, 编辑
摘要:
http://www.cnblogs.com/cdts_change/p/3240893.html 推荐:http://blog.csdn.net/zhuqilin0/article/details/6527113 http://www.cnblogs.com/lyanet/archive/201... 阅读全文
IOS中UITableview中封装九宫格
2013-08-06 14:56 by 甘超波, 2540 阅读, 收藏, 编辑
摘要:
第一步引入SecondNav目录即可 第二步引入头文件 #import "DIYTableView.h" #import "invoiceInfo.h" 实现协议 DIYButtonDelegate - (void)viewDidLoad{ [super viewDidLoad]; ... 阅读全文
ios中滚动页面
2013-08-06 09:39 by 甘超波, 1477 阅读, 收藏, 编辑
摘要:
- (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 阅读, 收藏, 编辑
摘要:
#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 甘超波, 1719 阅读, 收藏, 编辑
摘要:
asi中下载缓存第一种方法 #import #import "ASIHTTPRequest.h"#import "ASIDownloadCache.h"@interface ViewController : UIViewController- (IBAction)click:(id)sender... 阅读全文
ios中第三方库归结
2013-08-04 11:27 by 甘超波, 292 阅读, 收藏, 编辑
摘要:
1;uiscrollview 折叠展开中不包含tablecell。展开列表效果 Collapse Click () https://github.com/bennyguitar/CollapseClick展开中包含tablecell。(暂无)2:导航栏 加入分段SVSegmentedControl()3:网易ZUUIRevealController 阅读全文
ios中要在tableview中添加事件的方法
2013-08-02 16:42 by 甘超波, 1681 阅读, 收藏, 编辑
摘要:
//触摸tableview背景响应事件。 UIControl *bgcontrol = [[UIControl alloc]initWithFrame:self.tableView_typeList.backgroundView.bounds]; [bgcontrol add... 阅读全文
ios中键盘处理适合ipad 和iphone
2013-08-02 16:32 by 甘超波, 423 阅读, 收藏, 编辑
摘要:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasShown:) ... 阅读全文
ios中LeveyPopListView 弹出view的用法
2013-08-02 14:15 by 甘超波, 906 阅读, 收藏, 编辑
摘要:
下载地址 https://github.com/levey/LeveyPopListView是arc, 如果是非arc项目要设置一下 方法 选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。如何在未使用arc的... 阅读全文
ios中VRGCalendarView日历控件
2013-08-02 12:51 by 甘超波, 3674 阅读, 收藏, 编辑
摘要:
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 甘超波, 1075 阅读, 收藏, 编辑
摘要:
下载地址 https://github.com/MugunthKumar/MKHorizMenuDemo直接 加入MKHorizMenu目录即可 下载包地址 http://pan.baidu.com/share/link?shareid=2872269045&uk=923776187////... 阅读全文
ios中封装网络和tableview的综合运用
2013-08-01 17:22 by 甘超波, 3586 阅读, 收藏, 编辑
摘要:
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 甘超波, 358 阅读, 收藏, 编辑
摘要:
#import "ViewController.h"@interface ViewController ()//指定要画得view@property(nonatomic,assign)CPTGraphHostingView *hostview;//指定画布@property(nonatomic,... 阅读全文
ios中NSObject分类(2)
2013-08-01 12:46 by 甘超波, 2087 阅读, 收藏, 编辑
摘要:
#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 甘超波, 1314 阅读, 收藏, 编辑
摘要:
#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 甘超波, 1931 阅读, 收藏, 编辑
摘要:
#import #define TOPVIEWTAG 0x10000 // 导航栏的图片@interface UIViewController (Chnbs)-(void)setupTopNavigationView;-(void)resizeNavigationView;-(CGRect)C... 阅读全文