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

浙公网安备 33010602011771号