摘要: 1、自定义构造方法- (id) initWithAge:(int)age andNo:(int)no { // 首先要调用super的构造方法 // self = [super init]; if (self = [super init]) { _age = age; _no = no; } ret... 阅读全文
posted @ 2015-07-26 16:42 Duke-码动青春 阅读(190) 评论(0) 推荐(0)
摘要: // // MJViewController.m // 03-Tom // // Created by apple on 13-11-24. // Copyright (c) 2013年 itcast. All rights reserved. // #import "MJViewControlle 阅读全文
posted @ 2015-07-26 15:45 Duke-码动青春 阅读(793) 评论(0) 推荐(0)
摘要: 表情排列//// MJViewController.m// 01-表情排列//// Created by apple on 13-11-24.// Copyright (c) 2013年 itcast. All rights reserved.//#import "MJViewControl... 阅读全文
posted @ 2015-07-26 15:30 Duke-码动青春 阅读(285) 评论(0) 推荐(0)
摘要: 一、IOS 关闭键盘:1、让所有控件的键盘隐藏// 这个方法可以让整个view取消第一响应者,从而让所有控件的键盘隐藏[self.view endEditing:YES];2、让某个textFiled的取消第一响应者// 让某个textFiled的取消第一响应者[textField resignFi... 阅读全文
posted @ 2015-07-26 07:01 Duke-码动青春 阅读(197) 评论(0) 推荐(0)