08 2015 档案

摘要:***************基本图像绘制 画线#import "HMLineView.h"@implementation HMLineView- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; i... 阅读全文
posted @ 2015-08-31 17:51 iso 阅读(161) 评论(0) 推荐(0)
摘要:7> 手势识别 使用UIImageView原因:之前既能看见图片,又能监听点击的只有UIButton,学了手势,我们的UIImageView也可以。 * tap(代理:左边不能点,右边能点) * longPress(allowableMovement:触发之前,最大的移动范围) > 默认调用两次,开... 阅读全文
posted @ 2015-08-31 15:50 iso 阅读(295) 评论(0) 推荐(0)
摘要:******HMDrawViewController.m#import "HMDrawViewController.h"@interface HMDrawViewController ()@property (nonatomic, assign) BOOL isDraging;@end@implem... 阅读全文
posted @ 2015-08-31 15:43 iso 阅读(257) 评论(0) 推荐(0)
摘要:***hitTest 获取最合适的点@implementation HMGreenView- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"%s",__func__);}// 获取 最合适的 ... 阅读全文
posted @ 2015-08-31 15:32 iso 阅读(205) 评论(0) 推荐(0)
摘要:*******view 一些方法#import "HMView.h"@implementation HMView// 一个完整的触摸过程// touchesBegan -> touchesMoved -> touchesEnded/* NSArray 集合 有序 NSSet 无序 *//... 阅读全文
posted @ 2015-08-31 15:23 iso 阅读(249) 评论(0) 推荐(0)
摘要:******控制器modal- (void)btnClick{ // 创建控制器对象 HMJumpViewController *jump = [[HMJumpViewController alloc] init]; // [self.view addSubview:jump... 阅读全文
posted @ 2015-08-27 16:06 iso 阅读(128) 评论(0) 推荐(0)
摘要:**************HMAppDelegate.m- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.win... 阅读全文
posted @ 2015-08-27 16:00 iso 阅读(195) 评论(0) 推荐(0)
摘要:*****联系人的界面的优化HMContactsTableViewController.m#import "HMContactsTableViewController.h"#import "HMAddViewController.h"#import "HMEditViewController.h"#... 阅读全文
posted @ 2015-08-27 15:56 iso 阅读(321) 评论(0) 推荐(0)
摘要:***************plist存储// 当点点击保存的时候调用 //保存- (IBAction)save:(id)sender { // 获取沙盒的根路径 // NSString *home = NSHomeDirectory(); // 拼接Docume... 阅读全文
posted @ 2015-08-27 15:48 iso 阅读(401) 评论(0) 推荐(0)
摘要:******HMLoginViewController 登陆的界面#import "HMLoginViewController.h"#import "MBProgressHUD+MJ.h"#import "HMContactsTableViewController.h"@interface HMLo... 阅读全文
posted @ 2015-08-27 15:32 iso 阅读(687) 评论(0) 推荐(0)
摘要:*****HMViewController.m#import "HMViewController.h"#import "HMKeyboardTool.h"@interface HMViewController (){ NSArray *_fields;//存储所有的textField}@pro... 阅读全文
posted @ 2015-08-24 19:15 iso 阅读(261) 评论(0) 推荐(0)
摘要:#import "HMViewController.h"@interface HMViewController ()@property(nonatomic,strong)NSArray *flags;@end@implementation HMViewController- (void)viewDi... 阅读全文
posted @ 2015-08-24 19:06 iso 阅读(144) 评论(0) 推荐(0)
摘要:****HMAppDelegate.m@implementation HMAppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchO... 阅读全文
posted @ 2015-08-24 19:00 iso 阅读(213) 评论(0) 推荐(0)
摘要:*************HMAppDelegate.m中@implementation HMAppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary... 阅读全文
posted @ 2015-08-24 18:11 iso 阅读(484) 评论(0) 推荐(0)
摘要:***控制层#import "ViewController.h"#import "CZKeyboardToolbar.h"@interface ViewController ()@property (strong, nonatomic) UIDatePicker *datepicker;@prope... 阅读全文
posted @ 2015-08-19 17:14 iso 阅读(379) 评论(0) 推荐(0)
摘要:*********#import "ViewController.h"#import "Province.h"@interface ViewController ()@property (nonatomic,strong)NSArray *provinces;@property (nonatomic... 阅读全文
posted @ 2015-08-19 16:19 iso 阅读(348) 评论(0) 推荐(0)
摘要:国旗选择#import "HMViewController.h"#import "HMFlag.h"#import "HMFlagView.h"@interface HMViewController ()@property(nonatomic,strong)NSArray *flags;@end@i... 阅读全文
posted @ 2015-08-19 15:56 iso 阅读(415) 评论(0) 推荐(0)
摘要:UIPickerView#import "ViewController.h"@interface ViewController ()@property (nonatomic,strong)NSArray *foods;@property (weak, nonatomic) IBOutlet UILa... 阅读全文
posted @ 2015-08-19 15:48 iso 阅读(216) 评论(0) 推荐(0)
摘要:*****HMViewController.m#import "HMViewController.h"#import "HMFriendsGroupModel.h"#import "HMFriendsModel.h"#import "HMHeaderView.h"@interface HMViewC... 阅读全文
posted @ 2015-08-15 11:05 iso 阅读(233) 评论(0) 推荐(0)
摘要:#import #import "Person.h"#import "XQCompany.h"int main(int argc, const char * argv[]){ @autoreleasepool { //初始化两个机构 XQCompany *za = ... 阅读全文
posted @ 2015-08-15 11:03 iso 阅读(268) 评论(0) 推荐(0)
摘要:***********controller.m#import "HMViewController.h"#import "HMMessageModel.h"#import "HMMessageCell.h"#import "HMMessageFrameModel.h"@interface HMView... 阅读全文
posted @ 2015-08-15 10:58 iso 阅读(670) 评论(0) 推荐(0)
摘要:/// 控制层#import "HMViewController.h"#import "HMMessageModel.h"#import "HMMessageCell.h"#import "HMMessageFrameModel.h"@interface HMViewController ()@pr... 阅读全文
posted @ 2015-08-15 10:37 iso 阅读(345) 评论(0) 推荐(0)
摘要:***********#import "HMViewController.h"#import "HMStatus.h"#import "HMStatusCell.h"#import "HMStatusFrame.h"@interface HMViewController ()/** 保存status... 阅读全文
posted @ 2015-08-11 17:36 iso 阅读(433) 评论(0) 推荐(0)
摘要:*****HMViewController#import "HMViewController.h"#import "HMStatus.h"#import "HMStatusCell.h"#import "HMStatusFrame.h"@interface HMViewController ()/*... 阅读全文
posted @ 2015-08-11 17:07 iso 阅读(194) 评论(0) 推荐(0)
摘要:在 4 的 基础上重写 以下的方法 control#pragma mark - 代理方法/** 计算单元格行高 */- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPa... 阅读全文
posted @ 2015-08-11 16:50 iso 阅读(251) 评论(0) 推荐(0)
摘要:******控制control#import "HMViewController.h"#import "HMStatus.h"#import "HMStatusCell.h"@interface HMViewController ()@property (nonatomic, strong) NSA... 阅读全文
posted @ 2015-08-11 16:36 iso 阅读(200) 评论(0) 推荐(0)
摘要:****代理者的方法中 // 通知页脚视图调整视图显示状态 [footerView endRefresh];//发送代理通知的类中/** 视图控制器刷新完成调用方法 */- (void)endRefresh{ // 4. 加载完成数据 self.loadMoreButto... 阅读全文
posted @ 2015-08-07 16:43 iso 阅读(171) 评论(0) 推荐(0)
摘要:*******HMViewController.h#import "HMViewController.h"#import "HMTg.h"#import "HMTgCell.h"#import "HMTgFooterView.h"@interface HMViewController () @pro... 阅读全文
posted @ 2015-08-07 16:30 iso 阅读(241) 评论(0) 推荐(0)
摘要:******HMTg.h 模型数据#import @interface HMTg : NSObject@property (nonatomic, copy) NSString *title;@property (nonatomic, copy) NSString *icon;@property (n... 阅读全文
posted @ 2015-08-07 15:40 iso 阅读(250) 评论(0) 推荐(0)
摘要:**********UiTableView编辑模式, 拖动位置 ,滑动删除#import "HMViewController.h"@interface HMViewController () /** 数据列表 */@property (nonatomic, strong) NSMutableArra... 阅读全文
posted @ 2015-08-05 14:11 iso 阅读(639) 评论(0) 推荐(0)
摘要:复杂模型分组展示#import "HMViewController.h"#import "HMCarGroup.h"#import "HMCar.h"@interface HMViewController () @property (nonatomic, strong) NSArray *carGr... 阅读全文
posted @ 2015-08-05 14:06 iso 阅读(344) 评论(0) 推荐(0)
摘要://加上头部 和底部- (void)viewDidLoad{ [super viewDidLoad]; [self tableView]; // 设置行高 self.tableView.rowHeight = 120; // 分隔线 sel... 阅读全文
posted @ 2015-08-05 14:03 iso 阅读(726) 评论(0) 推荐(0)
摘要:*************UiTableView模型和数据的分组的显示#import "HMViewController.h"#import "HMHero.h"@interface HMViewController () @property (nonatomic, strong) UITableV... 阅读全文
posted @ 2015-08-04 11:25 iso 阅读(325) 评论(0) 推荐(0)
摘要:****加上数据分离#import "HMViewController.h"#import "HMStudent.h"@interface HMViewController () @property (weak, nonatomic) IBOutlet UITableView *tableView;... 阅读全文
posted @ 2015-08-04 11:18 iso 阅读(214) 评论(0) 推荐(0)
摘要:***表格控件#import "HMViewController.h"@interface HMViewController () @property (weak, nonatomic) IBOutlet UITableView *tableView;@end@implementation HMVi... 阅读全文
posted @ 2015-08-04 11:16 iso 阅读(196) 评论(0) 推荐(0)
摘要:IOS第六天(3:scrollView 图片轮播器)#import "HMViewController.h"#define kImageCount 5@interface HMViewController () @property (nonatomic, strong) UIScrollVi... 阅读全文
posted @ 2015-08-03 14:22 iso 阅读(211) 评论(0) 推荐(0)
摘要:****************10秒倒计时#import "HMViewController.h"@interface HMViewController () @property (weak, nonatomic) IBOutlet UILabel *counterLabel;@property ... 阅读全文
posted @ 2015-08-03 14:14 iso 阅读(276) 评论(0) 推荐(0)
摘要:***查看大图#import "HMViewController.h"@interface HMViewController () @property (strong, nonatomic) IBOutlet UIScrollView *scrollView;@property (nonatomic... 阅读全文
posted @ 2015-08-03 14:08 iso 阅读(309) 评论(0) 推荐(0)