技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

上一页 1 2 3 4 5 6 7 8 ··· 50 下一页

2014年10月8日 #

解析JSON字符串

摘要: 代码:#import void parseJSON(NSString *text){ NSError *error = nil; NSData *data = [text dataUsingEncoding:NSUTF8StringEncoding]; NSArray *array... 阅读全文

posted @ 2014-10-08 15:41 codestyle 阅读(275) 评论(0) 推荐(0) 编辑

切换view的动画

摘要: 代码:#import "MainViewController.h"@interface MainViewController ()@end@implementation MainViewController- (void)viewDidLoad{ [super viewDidLoad]; ... 阅读全文

posted @ 2014-10-08 10:27 codestyle 阅读(164) 评论(0) 推荐(0) 编辑

2014年9月30日 #

设置菜单和工具条

摘要: 代码:可任选一套方法进行显示和隐藏,如果决定有动画的那套,那么一开始初始化时就必须用set方法进行控制-(void) setBar{ UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemIte... 阅读全文

posted @ 2014-09-30 18:09 codestyle 阅读(170) 评论(0) 推荐(0) 编辑

视图切换的几种方法

摘要: 代码:-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ //切换方法1 //动画效果:左右滑动 //必须有导航器视图才能切换 [self.navigationController pushView... 阅读全文

posted @ 2014-09-30 13:58 codestyle 阅读(1130) 评论(0) 推荐(0) 编辑

2014年9月21日 #

scrollview 例子2

摘要: 代码:#import "RootViewController.h"@implementation RootViewController@synthesize scrollView;- (void)viewDidLoad{ [super viewDidLoad]; // Do any ad... 阅读全文

posted @ 2014-09-21 15:44 codestyle 阅读(323) 评论(0) 推荐(0) 编辑

UIScrollView

摘要: scroll view 例子://// RootViewController.m// testView//// Created by lishujun on 14-9-20.// Copyright (c) 2014年 lishujun. All rights reserved.//#imp... 阅读全文

posted @ 2014-09-21 02:02 codestyle 阅读(203) 评论(0) 推荐(0) 编辑

2014年9月15日 #

iOS:翻页效果

摘要: //// main.m// Hello//// Created by lishujun on 14-8-28.// Copyright (c) 2014年 lishujun. All rights reserved.//// 翻页太快会有问题,未解决//Unbalanced calls t... 阅读全文

posted @ 2014-09-15 15:08 codestyle 阅读(738) 评论(0) 推荐(0) 编辑

2014年9月5日 #

软件预构的艺术源码编译

摘要: 环境:windows7 + jdk8 + eclipse目录:源码 E:\Src\SamsCDRental-Prefactoring数据 E:\temp步骤:导入项目到eclipse中E:\Src\SamsCDRental-Prefactoring\SamsCDRental 包含.project文件... 阅读全文

posted @ 2014-09-05 01:05 codestyle 阅读(193) 评论(0) 推荐(0) 编辑

2014年9月4日 #

property测试代码:

摘要: //// main.m// TestVar2//// Created by lishujun on 14-9-4.// Copyright (c) 2014年 lishujun. All rights reserved.//#import @interface Address : NSObj... 阅读全文

posted @ 2014-09-04 16:49 codestyle 阅读(199) 评论(0) 推荐(0) 编辑

Objective-C property属性解析

摘要: @interface …@property (原子性,可写性,内存管理) id name;@end原子性: nonatomic, atomic 默认atomic可写性: readwrite, readonly 默认readwrite内存管理: assign, retain, copy 默认as... 阅读全文

posted @ 2014-09-04 16:40 codestyle 阅读(180) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 50 下一页