摘要: 一个小小的随机数工具。。。。。。。 1 self.view.backgroundColor = [UIColor yellowColor]; 2 3 UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(40, 40... 阅读全文
posted @ 2015-04-01 19:06 Angelone 阅读(125) 评论(0) 推荐(0) 编辑
摘要: UIButton的相关操作: 在实际的工作中,至少需要一个视图控制器(页面),不会直接往window上写UI,所有的UI都是写在视图控制器里的1.页面间的关联(写在AppDelegate中) HomeViewController *hvc = [[HomeViewController alloc] ... 阅读全文
posted @ 2015-04-01 18:54 Angelone 阅读(178) 评论(0) 推荐(0) 编辑
摘要: UILabel的相关操作:①初始化:UILabel是UIView的子类,拥有UIVi所有办法 UILable *label = [[UILabel alloc] initWithFrame:CGRectMake(,,,);②背景颜色 label.backgroundColor = [UIColor ... 阅读全文
posted @ 2015-04-01 17:11 Angelone 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一个小的浏览器。。。。。。。。。有后退,前进,刷新,停止,转到,本地,调js1 _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 40, self.view.frame.size.width, self.view.frame.siz... 阅读全文
posted @ 2015-04-01 16:04 Angelone 阅读(114) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-03-31 20:48 Angelone 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 现在大部分的聊天工具,像QQ,微信等及时聊天都有各种的小气泡包含着所要发送的文字,对其进行了一部分的整理,可能不全,仅供自己参考①首先聊天的页面其实是个tableView,因为都是一行一条信息的,只要把它的分割线去掉就可以让其一条条的显示。②在你向文本框输入信息的时候,文本框和发送按钮要随着键盘移... 阅读全文
posted @ 2015-03-31 19:50 Angelone 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 刷新的时候有两种方法:①第三方库 ②系统自带的库/************第三方库*********************************/1.首先导入EGOTableViewPullRefresh第三方库,导入头文件2.定义一个全局变量 EGORefreshTableHeaderVie... 阅读全文
posted @ 2015-03-25 17:52 Angelone 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 在做一个比较大的工程的时候,最好是用MVC模型因为每个页面都有导航,所以建一个BaseViewController页面继承UIViewController1 #import 2 #import "MyConnection.h"3 #define WINSIZE [[UIScreen mainScr... 阅读全文
posted @ 2015-03-24 16:32 Angelone 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 今天学习了有关block的一点点儿知识,在此对其整理一下。 1 #import "ViewController.h" 2 3 @interface ViewController () 4 { 5 UISlider *_slider; 6 } 7 8 @end 9 10 @impleme... 阅读全文
posted @ 2015-03-24 13:04 Angelone 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Person.h文件1 #import 2 3 @interface Person : NSObject 4 5 @property (strong,nonatomic)NSMutableString *name;6 7 @endPerson.m文件#import "Person.h"@implem... 阅读全文
posted @ 2015-03-23 18:40 Angelone 阅读(158) 评论(0) 推荐(0) 编辑