代码改变世界

ios中常用的方法

2013-06-28 18:19 by 甘超波, 748 阅读, 0 推荐, 收藏, 编辑
摘要:图片分类@implementation UIImageView (ext) +(UIImageView*)imageViewWith:(UIImage*)img imgFrame:(CGRect)_rect{ UIImageView *imgView = [[[UIImageViewal... 阅读全文

asiHttpRequst 学习地址

2013-06-26 21:51 by 甘超波, 239 阅读, 0 推荐, 收藏, 编辑
摘要:最全面的地址 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 甘超波, 1368 阅读, 0 推荐, 收藏, 编辑
摘要:#import typedef void (^DownloadCompletionBlock)(UIImage *image);@interface DownloadOperation : NSOperation// 图片的url地址@property (nonatomic, copy) NS... 阅读全文

webview中事件的用法

2013-06-26 21:34 by 甘超波, 3223 阅读, 0 推荐, 收藏, 编辑
摘要:封装 MBProgressHud====================================#import "MBProgressHUD.h"@interface MBProgressHUD (Add)+ (void)showError:(NSString *)error toVie... 阅读全文

自定义UITabbarcontrollerview

2013-06-24 10:17 by 甘超波, 2410 阅读, 0 推荐, 收藏, 编辑
摘要:// 初始化contentView [self initContentView]; #pragma mark 初始化contentView- (void)initContentView { CGSize size = self.view.bounds.size; UIView *c... 阅读全文

新浪微博中tableview中头部信息

2013-06-23 22:26 by 甘超波, 1654 阅读, 0 推荐, 收藏, 编辑
摘要:#import @class User;@protocol ASIHTTPRequestDelegate;@interface ProfileHeaderView : UIView @property (nonatomic, retain) User *user;@property (nonat... 阅读全文

uitableview做九宫格

2013-06-23 22:25 by 甘超波, 1737 阅读, 0 推荐, 收藏, 编辑
摘要: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 阅读, 0 推荐, 收藏, 编辑
摘要://创建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 阅读, 0 推荐, 收藏, 编辑
摘要:我的开发笔记--UILabel的详细使用及特殊效果我的开发笔记--UIButton的详细使用我的开发笔记---UISegmentedControl的详细使用我的开发笔记---UITextField的详细使我的开发笔记---UISlider的详细使用我的开发笔记---UISwitch的详细使用我的开发笔记---UIActivityIndicatorView的详细使用我的开发笔记---UIProgressView的详细使用 阅读全文

uitableview 和UISearchBar 下拉提示结合使用

2013-06-23 01:18 by 甘超波, 4028 阅读, 0 推荐, 收藏, 编辑
摘要:自定cell的代码 餐厅的实体和餐厅对应控件的frame #import @class RestaurantFrame;@interface Restaurant : NSObject@property(nonatomic,copy)NSString *restaurantIcon;@prope... 阅读全文

新浪微博的布局

2013-06-22 08:51 by 甘超波, 1324 阅读, 0 推荐, 收藏, 编辑
摘要://// 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 甘超波, 2956 阅读, 1 推荐, 收藏, 编辑
摘要:1:先分别设置各个文本框的键盘类型(inputview)-->在特定键盘中textediting中禁用输入。 2:然后递归绑定各个键盘的工具条(inputaccessview).并且个各个控件绑定有顺序的tag 3:上一个和下一个功能:先找到第一响应者,然后利用tag进行切换第一... 阅读全文

新浪iphone微博流程图

2013-06-11 16:40 by 甘超波, 676 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

ios面试题

2013-06-11 15:01 by 甘超波, 178 阅读, 0 推荐, 收藏, 编辑
摘要:http://blog.csdn.net/xunyn/article/details/8550673 阅读全文

新浪iphone微博小结

2013-06-11 14:42 by 甘超波, 478 阅读, 0 推荐, 收藏, 编辑
摘要:1:程序第一次进入的时候,通过判断沙盒(偏好设置中)中保存的版本号和程序运行的版本号进行判断。如果不相同,就进入新特性页面 ——》 》1:新特性页面展示的新特性图片,都是从plist中读取出来,最终读取出来的plist的图片信息,放在scrollerview上展示 》2: 在新特性页面,中最后一... 阅读全文

kvo

2013-05-07 20:13 by 甘超波, 186 阅读, 0 推荐, 收藏, 编辑
摘要:#import <Foundation/Foundation.h>@interface NameObServer : NSObject@end#import "NameObServer.h"@implementation NameObServer-(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context{ NSLog(@"%@",keyPath); NSLo 阅读全文

kvc

2013-05-06 22:33 by 甘超波, 313 阅读, 0 推荐, 收藏, 编辑
摘要://// main.m// kvcdemo01//// Created by ganchaobo on 13-5-6.// Copyright (c) 2013年 ganchaobo. All rights reserved.//#import #import "student.h"#i... 阅读全文

object-c中归档的用法

2013-05-04 23:05 by 甘超波, 1416 阅读, 0 推荐, 收藏, 编辑
摘要:下面是归档的例子 //// main.m// ArchiveDemo//// Created by ganchaobo on 13-5-4.// Copyright (c) 2013年 ganchaobo. All rights reserved.//#import void arch... 阅读全文

object-c中NSFileManger 和NSFileHandler的用法(2)

2013-05-04 21:18 by 甘超波, 1073 阅读, 0 推荐, 收藏, 编辑
摘要:文件定时读取(即用定时器读取NSTime)注意定时器一般在一个类里面设置 //// WriteData.m// FileMangerTask1//// Created by ganchaobo on 13-5-4.// Copyright (c) 2013年 ganchaobo. A... 阅读全文

object-c中NSFileManger 和NSFileHandler的用法

2013-05-04 17:16 by 甘超波, 433 阅读, 0 推荐, 收藏, 编辑
摘要://// main.m// FileManager//// Created by ganchaobo on 13-5-4.// Copyright (c) 2013年 ganchaobo. All rights reserved.//#import void copyfile (... 阅读全文
上一页 1 ··· 6 7 8 9 10 11 12 下一页