2012年7月24日

摘要: 1 #import "LabelTestViewController.h" 2 3 @implementation LabelTestViewController 4 5 /* 6 7 Accessing the Text Attributes 8 9 text property 10 11 font property 12 13 textColor property 14 15 textAlignment property 16 17 lineBreakMode ... 阅读全文
posted @ 2012-07-24 15:41 甲骨魚 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1 //打开 ButtonViewController.m 文件: 2 3 - (void)viewDidLoad { 4 5 [super viewDidLoad]; 6 7 //创建按钮 8 UIButton *sampleButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 9 10 11 //... 阅读全文
posted @ 2012-07-24 15:06 甲骨魚 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: iphone开发的一些小技巧(一)(关键字:除去UITableView的边框和划动删除,同步请求及异步请求)1. 如何除去UITableViewStyleGroup类型的UITableView的边框: UITableViewStylePlain类型的UITableView去除边框线有直接的属性方法: separatorStyle =UITableViewCellSeparatorStyleNone; 但在UITableViewStyleGrouped类型的UITableView中,该方法无效 如何去除边框线呢?答案很简单: separatorColor=[UIColor clearColor] 阅读全文
posted @ 2012-07-24 14:14 甲骨魚 阅读(295) 评论(0) 推荐(0) 编辑
摘要: ios 中各种动画效果 分类: iphone 2012-05-28 00:58 44人阅读 评论(0) 收藏 举报各种动画效果最普通动画:2011-03-09 19:47最普通动画://开始动画[UIView beginAnimations:nil context:nil]; //设定动画持续时间[UIView setAnimationDuration:2];//动画的内容frame.origin.x += 150;[img setFrame:frame];//动画结束[UIView commitAnimations];连续动画:一个接一个地显示一系列的图像NSArray *myImag... 阅读全文
posted @ 2012-07-24 11:48 甲骨魚 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 这篇文章主要讲的表格的操作包括:标记行、移动行、删除行、插入行。这次就不从头建立工程了,在http://www.oschina.net/code/snippet_164134_9876下载工程。这个工程就是最简单的产生一个表格并向其中写入数据。用Xcode 4.2打开它,在这个工程基础上实现以上操作。1、标记行这里讲的标记行指的是单击此行,可以实现在此行右边出现一个勾,如下图所示:为了实现标记功能,在ViewController.m中@end之前添加代码:#pragma mark -#pragma mark Table Delegate Methods- (void)tableView:(UI 阅读全文
posted @ 2012-07-24 11:46 甲骨魚 阅读(697) 评论(0) 推荐(0) 编辑
摘要: Lua 程式開發筆記明明我在用 Mac OSX 寫這篇文章,但是依慣例還是要用 FreeBSD 的安裝範例安裝# cd /usr/ports/lang/lua; make install distclean語法字串:> print('aabbcc')aabbcc> print("aabbcc")aabbcc> print([[aabbcc]])aabbcc> print([=[aabbcc]=])aabbcc賦值:> a, b, c, d = true, false, 1, 1 < 2> print(a, b, c, 阅读全文
posted @ 2012-07-24 09:32 甲骨魚 阅读(207) 评论(0) 推荐(0) 编辑

导航