摘要:
***表格控件#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... 阅读全文
摘要:
*********用户登录,回车的监听(代理模式UITextFieldDelegate)#import "HMViewController.h"@interface HMViewController () @property (weak, nonatomic) IBOutlet UITextFiel... 阅读全文
摘要:
***********取消按钮的监听和设置代理textField字数限制 UITextFieldDelegate#import "HMViewController.h"@interface HMViewController () @end@implementation HMViewControlle... 阅读全文
摘要:
#pragma mark - 答题区按钮点击方法- (void)answerClick:(UIButton *)button{ // 1. 如果按钮没有字,直接返回 if (button.currentTitle.length == 0) return; // 2. 如果有... 阅读全文
摘要:
创建备份区按钮和判断结果/** 创建备选区按钮 */- (void)createOptionButtons:(HMQuestion *)question{ // 问题:每次调用下一题方法时,都会重新创建21个按钮 // 解决:如果按钮已经存在,并且是21个,只需要更改按钮标题即可 ... 阅读全文
摘要:
#import "HMViewController.h"#import "HMQuestion.h"#define kButtonWidth 35#define kButtonHeight 35#define kButtonMargin 10#define kTotolCol ... 阅读全文
摘要:
数组的升序和降序- (void)sortWith:(NSArray *)array{ // 排序 array = [array sortedArrayUsingComparator:^NSComparisonResult(NSNumber *num1, NSNumber *num2) {... 阅读全文