摘要:
//// ViewController.m// coredatademo002//// Created by ganchaobo on 13-6-29.// Copyright (c) 2013年 ganchaobo. All rights reserved.//#import "Vie... 阅读全文
随笔档案-2013年06月
ios 中sqlite的用法
2013-06-30 10:55 by 甘超波, 1668 阅读, 收藏, 编辑
摘要:
#import @interface ViewController (){ sqlite3 *_sqldb;}@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // Do an... 阅读全文
iOS中CGRectDividede中布局用法
2013-06-29 09:43 by 甘超波, 2030 阅读, 收藏, 编辑
摘要:
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSLog(@"view.bouns-->%@"... 阅读全文
ios中常用的方法
2013-06-28 18:19 by 甘超波, 749 阅读, 收藏, 编辑
摘要:
图片分类@implementation UIImageView (ext) +(UIImageView*)imageViewWith:(UIImage*)img imgFrame:(CGRect)_rect{ UIImageView *imgView = [[[UIImageViewal... 阅读全文
asiHttpRequst 学习地址
2013-06-26 21:51 by 甘超波, 239 阅读, 收藏, 编辑
摘要:
最全面的地址 http://blog.csdn.net/uxyheaven/article/details/7884734 http://allseeing-i.com/ASIHTTPRequest/How-to-use http://www.devdiv.com/forum.php?mod=vi... 阅读全文
自定义nsoperation的用法
2013-06-26 21:40 by 甘超波, 1369 阅读, 收藏, 编辑
摘要:
#import typedef void (^DownloadCompletionBlock)(UIImage *image);@interface DownloadOperation : NSOperation// 图片的url地址@property (nonatomic, copy) NS... 阅读全文
webview中事件的用法
2013-06-26 21:34 by 甘超波, 3225 阅读, 收藏, 编辑
摘要:
封装 MBProgressHud====================================#import "MBProgressHUD.h"@interface MBProgressHUD (Add)+ (void)showError:(NSString *)error toVie... 阅读全文
自定义UITabbarcontrollerview
2013-06-24 10:17 by 甘超波, 2412 阅读, 收藏, 编辑
摘要:
// 初始化contentView [self initContentView]; #pragma mark 初始化contentView- (void)initContentView { CGSize size = self.view.bounds.size; UIView *c... 阅读全文
新浪微博中tableview中头部信息
2013-06-23 22:26 by 甘超波, 1655 阅读, 收藏, 编辑
摘要:
#import @class User;@protocol ASIHTTPRequestDelegate;@interface ProfileHeaderView : UIView @property (nonatomic, retain) User *user;@property (nonat... 阅读全文
uitableview做九宫格
2013-06-23 22:25 by 甘超波, 1739 阅读, 收藏, 编辑
摘要:
1:创建实体 #import @interface Shop : NSObject@property (nonatomic, copy) NSString *icon;@property (nonatomic, copy) NSString *name;@end#import @interfac... 阅读全文
tableview中头部信息
2013-06-23 16:05 by 甘超波, 1691 阅读, 收藏, 编辑
摘要:
//创建tableview中头部的文件#define kPadding 10#define kIconWidth 100#define kIconHeight 100#define kCountButtonHeight 35#define kCountSize 12#define kCountB... 阅读全文
ios 中基本控件的定义
2013-06-23 15:57 by 甘超波, 209 阅读, 收藏, 编辑
摘要:
我的开发笔记--UILabel的详细使用及特殊效果我的开发笔记--UIButton的详细使用我的开发笔记---UISegmentedControl的详细使用我的开发笔记---UITextField的详细使我的开发笔记---UISlider的详细使用我的开发笔记---UISwitch的详细使用我的开发笔记---UIActivityIndicatorView的详细使用我的开发笔记---UIProgressView的详细使用 阅读全文
uitableview 和UISearchBar 下拉提示结合使用
2013-06-23 01:18 by 甘超波, 4032 阅读, 收藏, 编辑
摘要:
自定cell的代码 餐厅的实体和餐厅对应控件的frame #import @class RestaurantFrame;@interface Restaurant : NSObject@property(nonatomic,copy)NSString *restaurantIcon;@prope... 阅读全文
新浪微博的布局
2013-06-22 08:51 by 甘超波, 1326 阅读, 收藏, 编辑
摘要:
//// MJTabbarItem.m// 新浪微博//// Created by mj on 13-4-21.// Copyright (c) 2013年 itcast. All rights reserved.// #import "MJTabbarItem.h" @implementation... 阅读全文
ios中键盘处理源码
2013-06-20 14:17 by 甘超波, 2957 阅读, 收藏, 编辑
摘要:
1:先分别设置各个文本框的键盘类型(inputview)-->在特定键盘中textediting中禁用输入。 2:然后递归绑定各个键盘的工具条(inputaccessview).并且个各个控件绑定有顺序的tag 3:上一个和下一个功能:先找到第一响应者,然后利用tag进行切换第一... 阅读全文
ios面试题
2013-06-11 15:01 by 甘超波, 178 阅读, 收藏, 编辑
摘要:
http://blog.csdn.net/xunyn/article/details/8550673 阅读全文
新浪iphone微博小结
2013-06-11 14:42 by 甘超波, 480 阅读, 收藏, 编辑
摘要:
1:程序第一次进入的时候,通过判断沙盒(偏好设置中)中保存的版本号和程序运行的版本号进行判断。如果不相同,就进入新特性页面 ——》 》1:新特性页面展示的新特性图片,都是从plist中读取出来,最终读取出来的plist的图片信息,放在scrollerview上展示 》2: 在新特性页面,中最后一... 阅读全文