摘要: 第一步 在ViewController里,需要有数据,即就是数组,第二步 创建一个UITableViewCell .h文件中定义两个属性 分别是 一个字符串(用来赋值在TableViewcell 的Label 的Text),一个浮点数记录TableViewcell的高 .m文件中 定义一个全局变... 阅读全文
posted @ 2015-11-19 19:16 破水杯 阅读(317) 评论(0) 推荐(0) 编辑
摘要: //第一页#import "ViewController.h"#import "LoginAndRegisterViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDid... 阅读全文
posted @ 2015-11-18 13:37 破水杯 阅读(244) 评论(0) 推荐(0) 编辑
摘要: - (void)KeyBoardShowOrHide{ // NSNotificationCenter 通知中心 // 检测键盘将要消失的状态 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(h... 阅读全文
posted @ 2015-11-18 13:22 破水杯 阅读(315) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import "FWZViewController.h"@interface ViewController (){ NSMutableArray *_arrayM; UITableView *_tableView;}@end@implemen... 阅读全文
posted @ 2015-11-18 11:02 破水杯 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController (){ UITableView *_tableView; NSMutableArray *_arrayM;}@end@implementation ViewController- (void)... 阅读全文
posted @ 2015-11-18 10:54 破水杯 阅读(282) 评论(0) 推荐(0) 编辑
摘要: // 设置控制器的title self.title = @"O(∩_∩)O哈哈~"; // 设置navigationbar 的样式 // self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;... 阅读全文
posted @ 2015-11-18 09:55 破水杯 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //1.进入第一 push- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ FirstViewController *firstVC = [[FirstViewController alloc] init]; [s... 阅读全文
posted @ 2015-11-18 09:54 破水杯 阅读(182) 评论(0) 推荐(0) 编辑
摘要: //1.手势,viewcontroller 进入下一页- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ MCJViewController *mcjVC = [[MCJViewController alloc] in... 阅读全文
posted @ 2015-11-18 09:46 破水杯 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 我的xcode 是 IOS9.0 Xcode.7.0版本符合,可复制黏贴直接用#import "ViewController.h"1.定义成员变量 遵循代理@interface ViewController (){ NSMutableArray *_switchArray; NSMutabl... 阅读全文
posted @ 2015-11-17 17:40 破水杯 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1.注册页面写代理.h文件里的内容如下,需要注意的是: (1).代理名为红色标注,直接复制粘贴 (2).一定要写黄色区域@class RegisterViewController;@protocol RegisterViewControllerDelegate @optional- (void)... 阅读全文
posted @ 2015-11-15 15:51 破水杯 阅读(496) 评论(0) 推荐(0) 编辑