摘要:
#import "ViewController.h"@interface ViewController ()//要绘制基于x,y轴的图形@property(nonatomic,retain)CPTXYGraph *graph;@property(nonatomic,retain)NSMutabl... 阅读全文
随笔档案-2013年07月
ios中PagedFlowView的用法
2013-07-31 11:23 by 甘超波, 2481 阅读, 收藏, 编辑
摘要:
下载地址 引入PagedFlowView.h PagedFlowView.m文件 #import #import "PagedFlowView.h"@interface MyViewController : UIViewController@end#import "MyViewControlle... 阅读全文
ios中网络请求缓存
2013-07-30 21:38 by 甘超波, 1513 阅读, 收藏, 编辑
摘要:
#import #import "ASIFormDataRequest.h"@protocol NetWorkdelegate;@interface JSNetWork : NSObject+(JSNetWork *)shareNetWork;-(void)JsNetWordWithConnec... 阅读全文
ios中调用摄像头
2013-07-29 18:31 by 甘超波, 14135 阅读, 收藏, 编辑
摘要:
@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loadi... 阅读全文
ios中封装网络请求类
2013-07-25 08:50 by 甘超波, 11206 阅读, 收藏, 编辑
摘要:
#import "JSNetWork.h"//asiHttpRequest#import "ASIFormDataRequest.h"//xml 的解析#import "UseXmlParser.h"//判断是否联网#import "Reachability.h"//sbJson,判断json的... 阅读全文
ios中uitableview上拉刷新和下拉刷新(1)
2013-07-25 08:33 by 甘超波, 12906 阅读, 收藏, 编辑
摘要:
在一个项目开发过程中为了更好的体验经常会用到下拉刷新更新数据,当然也伴随一些上拉加载更多数据的情况;当前比较火的EGOTableViewPullRefresh只实现了下拉功能,而没有上拉的功能。这里介绍一个同时集成下拉刷新和上拉加载更多的类库EGOTableViewPullRefresh英文原文... 阅读全文
ios中屏幕适配
2013-07-24 20:15 by 甘超波, 9599 阅读, 收藏, 编辑
摘要:
- (void)viewDidLoad{ [super viewDidLoad]; // 左上角 // 固定左边和上边,伸缩右边和下边 self.leftTop.autoresizingMask = UIViewAutoresizingFlexibleRightM... 阅读全文
ios中非ARC项目中引用ARC文件
2013-07-22 14:07 by 甘超波, 221 阅读, 收藏, 编辑
摘要:
下图即可 选中工程->TARGETS->相应的target然后选中右侧的“Build Phases”,向下就找到“Compile Sources”了。如何在未使用arc的工程中引入一个使用了arc特性的文件:对相应的文件添加:-fobjc-arc参数 阅读全文
ios中Pldatabase的用法(4)
2013-07-19 16:49 by 甘超波, 323 阅读, 收藏, 编辑
摘要:
封装成DAO@implementation SqlHelper+(BOOL)InsertSql:(NSString *)sql paramet:(NSMutableDictionary *)parmet{ return [self Modifysql:sql parametDic:parme... 阅读全文
ios中Pldatabase的用法(3)
2013-07-19 12:16 by 甘超波, 396 阅读, 收藏, 编辑
摘要:
#import "ViewController.h"@interface ViewController ()@property(nonatomic,retain)PLSqliteDatabase *db;@end@implementation ViewController#pragma mark... 阅读全文
ios中Pldatabase的用法(2)
2013-07-19 12:15 by 甘超波, 275 阅读, 收藏, 编辑
摘要:
@implementation AppGlobalstatic NSString* strHostName;static NSString* strVersion;static PLSqliteDatabase* dbHelper;static CConfigSetting* configSe... 阅读全文
ios中修改数字键盘
2013-07-19 11:42 by 甘超波, 3929 阅读, 收藏, 编辑
摘要:
自定义文本框: #import //自定义键盘的键定义@interface DIYKey : NSObject{}@property(copy, nonatomic) NSString* name;@property(copy, nonatomic) NSString* representedS... 阅读全文
asyncsocket的用法
2013-07-17 09:19 by 甘超波, 15302 阅读, 收藏, 编辑
摘要:
更多参考文章http://blog.csdn.net/zltianhen/article/details/6560322 http://www.cnblogs.com/bucengyongyou/archive/2012/10/28/2743523.html CocoaAsyncSocket学习 下... 阅读全文
ios中Pldatabase的用法
2013-07-16 11:15 by 甘超波, 1128 阅读, 收藏, 编辑
摘要:
将PLDATABASE加入到工程下载PLDatabase的dmg文件将PLDatabase的framework复制到工程根目录在工程中加入该framework使用该framework进行数据库操作将PLDATABASE加入到工程下载PLDatabase的dmg文件将PLDatabase的fram... 阅读全文
ios中打包
2013-07-15 18:03 by 甘超波, 314 阅读, 收藏, 编辑
摘要:
第一步:这里需要注意,要选择真机,否则Archive 会是灰色的。 点击后,系统会自动编译一次,并跳转到如图界面: 第二步: 在你刚刚生成的程序上点击右键,并且点击Show in Finder。 第三步: 在打开的窗口中选择 生成的文件 右键点击,显示包内容。 ... 阅读全文
ios中tableview侧栏的折叠
2013-07-15 14:36 by 甘超波, 2904 阅读, 收藏, 编辑
摘要:
#import "ViewController.h"#define Ksmall 40.0f#define Klarge 80.0f#define KNoOpen @"NoOpen"@interface ViewController (){ int flag;}@property(nona... 阅读全文
ios中两个view动画切换
2013-07-14 19:00 by 甘超波, 5903 阅读, 收藏, 编辑
摘要:
@interface ViewController ()@property(nonatomic,retain)UIView *redview;@property(nonatomic,retain)UIView *yellowview;@end@implementation ViewControl... 阅读全文
ios中在uiNavigationcontroller中做转场动画
2013-07-14 18:12 by 甘超波, 3223 阅读, 收藏, 编辑
摘要:
1:了解,当创建一个UINavigationcontroller中时,当创建一个子视图控制器压入uiNavigationController中,其中里面的view也别加入UINavigationcontoller.view中去了 验证代码 -(void)viewWillDisappear:(BO... 阅读全文
ios中uiview 转场动画
2013-07-14 17:28 by 甘超波, 616 阅读, 收藏, 编辑
摘要:
//转场动画1--头尾-(void)TransitionAnimation1{ [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.5]; [UIView setAnimationTr... 阅读全文
uiview封装的基本动画
2013-07-14 17:11 by 甘超波, 484 阅读, 收藏, 编辑
摘要:
基本动画的类型为 基本动画的节奏 UIViewAnimationOptionCurveEaseInOut = 0 %@",animationID);}-(void)animationDidStop:(NSString *)animationID finished:(NSNumber *... 阅读全文
ios图层转场动画
2013-07-14 14:21 by 甘超波, 4757 阅读, 收藏, 编辑
摘要:
动画类型 CAAnimation的子类,用于做转场动画,能够为层提供移出屏幕和移入屏幕的动画效果。iOS比Mac OS X的转场动画效果少一点UINavigationController就是通过CATransition实现了将控制器的视图推入屏幕的动画效果属性解析:type:动画过渡类型... 阅读全文
ios中图层和view的关系
2013-07-14 12:06 by 甘超波, 1739 阅读, 收藏, 编辑
摘要:
-(void)viewMethod{ //1: 要明白uiview内部是这样实现 CALayer *layer1= [CALayer layer]; layer.delegate=self; [layer1 setNeedsDisplay]; [self.layer... 阅读全文
ios中自定义图层的2种方法
2013-07-14 11:56 by 甘超波, 1005 阅读, 收藏, 编辑
摘要:
1:自定义图层,在图层中画图 #import @interface MJLayer : CALayer@end#import "MJLayer.h"@implementation MJLayer#pragma mark 在这个方法中所画的动画都会显示到MJLayer上面- (void)drawI... 阅读全文
ios中图层的ancorPoint
2013-07-14 11:19 by 甘超波, 322 阅读, 收藏, 编辑
摘要:
@interface MJViewController () { CALayer *_layer;}@end@implementation MJViewController- (void)viewDidLoad{ [super viewDidLoad]; CALayer... 阅读全文
ios中自定义图层
2013-07-14 10:48 by 甘超波, 1912 阅读, 收藏, 编辑
摘要:
图层和VIEW的区别 1;view不具备显示功能,是因view内部有一个图层,才能显示出来 2:图层不具备事件功能,VIEW继承UIRespone具有处理事件功能 3:自定义的图层有一个影式动画,VIEW中图层没有隐式动画(影式动画:改变图层的某个属性,会发生动画,uiview内部图层没有影视动画)... 阅读全文
ios中图层的用法(1)
2013-07-14 10:32 by 甘超波, 639 阅读, 收藏, 编辑
摘要:
uiview画圆角 - (void)layerMyView { // 圆角 self.myview.layer.cornerRadius = 10; // 边框 self.myview.layer.borderWidth = 5; self.myview.layer... 阅读全文
iOS手势的综合运用
2013-07-14 10:21 by 甘超波, 337 阅读, 收藏, 编辑
摘要:
//自定义一个VIEW封装手势功能// CustormView.m// gesterDemoo//// Created by ganchaobo on 13-7-13.// Copyright (c) 2013年 ganchaobo. All rights reserved.//#imp... 阅读全文
ios 中手势用法
2013-07-13 19:57 by 甘超波, 712 阅读, 收藏, 编辑
摘要:
pan拖动手势 - (void)viewDidLoad{ [super viewDidLoad]; [self Pan]; // Do any additional setup after loading the view, typically from a nib.}#pra... 阅读全文
IOS中文本框输入自动隐藏和自动显示
2013-07-12 15:16 by 甘超波, 4304 阅读, 收藏, 编辑
摘要:
uilabe和UIText扩展方法 +(UILabel*)LabWithFrame:(CGRect)_rect text:(NSString*)aText textColor:(UIColor*)aColor ... 阅读全文
ios总结目录
2013-07-12 10:12 by 甘超波, 262 阅读, 收藏, 编辑
摘要:
1:iOS中er二维码的使用http://www.cnblogs.com/gcb999/p/3183655.html2:iOS中根据数据自动生成有规律的(UItextField和UILabel) IOS中文本框输入自动隐藏和自动显示http://www.cnblogs.com/gcb999/... 阅读全文
ios中二维码的用法
2013-07-11 11:43 by 甘超波, 2449 阅读, 收藏, 编辑
摘要:
网上的例子 zbar 下载地址 http://pan.baidu.com/share/link?shareid=2652605686&uk=9237761871.新建一个工程A:view-base 2.拖动zbar框架到工程目录下 3.然后把zbar/iphone目录下的工程.xpr... 阅读全文
ios中键盘处理(二)
2013-07-10 16:53 by 甘超波, 708 阅读, 收藏, 编辑
摘要:
设置UIscrollview的背景代码 - (UIImage *) ImageWithColor: (UIColor *) color frame:(CGRect)aFrame{ UIGraphicsBeginImageContext(aFrame.size); CGContextR... 阅读全文
MBProgressHUD 的类扩展方法用法
2013-07-08 21:50 by 甘超波, 3448 阅读, 收藏, 编辑
摘要:
#import "MBProgressHUD.h"@interface MBProgressHUD (Add)+ (void)showError:(NSString *)error toView:(UIView *)view;+ (MBProgressHUD *)showMessag:(NSSt... 阅读全文
ios中webview的高级用法(二)
2013-07-08 21:48 by 甘超波, 77812 阅读, 收藏, 编辑
摘要:
框架: webview与js的通信框架 #import "MJViewController.h"#import "MBProgressHUD+Add.h"@interface MJViewController ()@end@implementation MJViewController- ... 阅读全文
ios中webview的高级用法
2013-07-08 17:31 by 甘超波, 24260 阅读, 收藏, 编辑
摘要:
1.隐藏上下滚动时出边界的后面的黑色的阴影- (void) hideGradientBackground:(UIView*)theView{ for (UIView * subview in theView.subviews) { if ([subview isKindOfClass:... 阅读全文
ios中UIWebview和asiHttprequest的用法
2013-07-08 16:07 by 甘超波, 2814 阅读, 收藏, 编辑
摘要:
原文地址为:http://www.cnblogs.com/pengyingh/articles/2343062.htmlasiHttprequest的用法 它对Get请求的响应数据进行缓存(被缓存的数据必需是成功的200请求): ASIHTTPRequest会自动保存访问过的URL信息,... 阅读全文
ios中UIWebview中加载本地文件
2013-07-08 14:07 by 甘超波, 7086 阅读, 收藏, 编辑
摘要:
[super viewDidLoad]; webview=[[UIWebView alloc] initWithFrame:self.view.bounds]; [self.view addSubview: webview]; [webview release... 阅读全文
iOS中判断网络是否联网
2013-07-06 21:10 by 甘超波, 7030 阅读, 收藏, 编辑
摘要:
#import "AppDelegate.h"#import "ViewController.h"#import "Reachability.h"@interface AppDelegate (){}@property (nonatomic,retain)Reachability *res;@e... 阅读全文
iPhone开发之在UINavigationBar上使用UISegmentedControl制作
2013-07-05 17:35 by 甘超波, 629 阅读, 收藏, 编辑
摘要:
UISegmentedControl *segmentedControl=[[UISegmentedControl alloc] initWithFrame:CGRectMake(80.0f, 7.0f, 70.0f, 30.0f) ];[segmentedControl insertSegme... 阅读全文
ios真机调试步骤
2013-07-03 20:43 by 甘超波, 295 阅读, 收藏, 编辑
摘要:
http://blog.csdn.net/jianxuanlu/article/details/7283059 http://www.cnblogs.com/85538649/archive/2012/05/21/2511308.html 第二 真机调试 http://mobile.51cto.co... 阅读全文
uitableview分组的数据2中方式
2013-07-02 21:45 by 甘超波, 1677 阅读, 收藏, 编辑
摘要:
//// ViewController.m// tableviegroup//// Created by ganchaobo on 13-7-2.// Copyright (c) 2013年 ganchaobo. All rights reserved.//#import "ViewCo... 阅读全文
ios中开始页面做法
2013-07-02 20:43 by 甘超波, 1370 阅读, 收藏, 编辑
摘要:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] ... 阅读全文