摘要: frame属性:可以使用该属性改变尺寸和位置 相对于父视图bounds:改变尺寸 相对自身center:改变视图的位置alpha:改变视图的透明度backgroundColor:改变视图的背景contentStretch:改变视图内容如何拉伸//开始动画[UIView beginAnimations 阅读全文
posted @ 2016-03-28 21:58 原码 阅读(155) 评论(0) 推荐(0) 编辑
摘要: iOS9以后GDataXMLNode修改方式 阅读全文
posted @ 2016-03-25 21:58 原码 阅读(145) 评论(0) 推荐(0) 编辑
摘要: //1.获取网咯路径 NSString *path = @"http://1.studyios.sinaapp.com/getAllClass.php"; //2.获取URL NSURL *url = [NSURL URLWithString:path]; //3.创建请求命令 NSURLReque 阅读全文
posted @ 2016-03-24 22:14 原码 阅读(111) 评论(0) 推荐(0) 编辑
摘要: -(NSArray *)getAllStundets { //1创建临时集合 存储学生信息 NSMutableArray *arr = [NSMutableArray arrayWithCapacity:20]; //2打开数据库 sqlite3 *sql = [DBManager openDB]; 阅读全文
posted @ 2016-03-23 22:34 原码 阅读(1696) 评论(0) 推荐(0) 编辑
摘要: primary key 维一键 不为空 autoinc 自动增长 在前面数自动加一 阅读全文
posted @ 2016-03-22 22:56 原码 阅读(120) 评论(0) 推荐(0) 编辑
摘要: @interface Student : NSObject @property (strong,nonatomic) NSString *name; @property (assign,nonatomic) int age; @property (assign,nonatomic) char sex 阅读全文
posted @ 2016-03-22 07:43 原码 阅读(165) 评论(0) 推荐(0) 编辑
摘要: @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; self.textF = [[UITextField alloc] initWithFrame:CGRectMake(100, 100, 100, 40 阅读全文
posted @ 2016-03-20 22:31 原码 阅读(151) 评论(0) 推荐(0) 编辑
摘要: @interface MyCellTableViewCell : UITableViewCell //在单元格中添加子视图 @property (strong,nonatomic) UILabel *MyLable; //为子视图赋值 -(void)setCellinfo:(NSDictionary 阅读全文
posted @ 2016-03-18 21:53 原码 阅读(213) 评论(0) 推荐(0) 编辑
摘要: @interface RootTableViewController : UITableViewController @property (strong,nonatomic) NSArray *arrTitle; @property (strong,nonatomic) NSArray *arrIm 阅读全文
posted @ 2016-03-17 22:41 原码 阅读(221) 评论(0) 推荐(0) 编辑
摘要: self.view.backgroundColor = [UIColor grayColor]; self.text = [[UITextField alloc] initWithFrame:CGRectMake(100, 100, 200, 110)]; self.text.text = @"空间 阅读全文
posted @ 2016-03-16 22:03 原码 阅读(177) 评论(0) 推荐(0) 编辑