博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 68 下一页

2011年7月28日

摘要: 介绍UIALertView和UIActionSheet的用法。write by Xingchen’s sky1:构建一个简单的警告框:UIAlertView*alert = [[UIAlertViewalloc]initWithTitle:@"xingchen" message:@"message" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];[alertshow];[alertrelease];这里,仅仅是现实一个按钮的对话框,以模态的形式运行。2:当然,我 阅读全文

posted @ 2011-07-28 22:05 星尘的天空 阅读(902) 评论(0) 推荐(0) 编辑

2011年7月26日

摘要: Navigation Controller 模式弹出新的Navigation ControllerUINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:addViewController];self.navigationController presentModalViewController:navController animated:YES];或: SubView *printView=[[EIPrintPreprint alloc] initW 阅读全文

posted @ 2011-07-26 23:16 星尘的天空 阅读(439) 评论(0) 推荐(0) 编辑

摘要: 关于UISearchBar的一些问题。1:修改UISearchBar的背景颜色UISearchBar是由两个subView组成的,一个是UISearchBarBackGround,另一个是UITextField. 要IB中没有直接操作背景的属性。方法是直接将UISearchBarBackGround移去seachBar=[[UISearchBaralloc]init];seachBar.backgroundColor=[UIColorclearColor];for(UIView*subviewinseachBar.subviews){ if([subviewisKindOfClass:NSCl 阅读全文

posted @ 2011-07-26 20:33 星尘的天空 阅读(684) 评论(0) 推荐(0) 编辑

摘要: LinkAddress:http://bbs.51cto.com/thread-844545-1-1.html之前大家是否疑惑为什么设置了类似这样的代码 UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:"返回" style:UIBarButtonItemStylePlain target:self action:nil];self.navigationItem.backBarButtonItem = backButton;复制代码界面上backButton并没出现“返回”的字样其实是被 阅读全文

posted @ 2011-07-26 20:04 星尘的天空 阅读(2087) 评论(0) 推荐(0) 编辑

摘要: 隐藏Cell的border可见性,显示仅仅是折中的方案,没有直接的Visible属性tableView.separatorColor = [UIColor clearColor];THE END ! 阅读全文

posted @ 2011-07-26 14:10 星尘的天空 阅读(352) 评论(0) 推荐(0) 编辑

2011年7月18日

摘要: self.tableView.indicatorStyle=UIScrollViewIndicatorStyleWhite;UITableview 的滚动条默认颜色是黑色的,如果 UItableview 背景也是深颜色,则滚动条会变的很不明显。您可以用下面这行代码来改变滚动条的颜色当然,最后的 “White” 也可以换成其它颜色。THE END ! 阅读全文

posted @ 2011-07-18 23:56 星尘的天空 阅读(288) 评论(0) 推荐(0) 编辑

摘要: 这一节主要讲解对UITableView的理解IPhone的应用程序是离不开UITableView应用程序的,因此理解Table控件特别的重要。下面主要是对UITableView显示数据的两种方式进行讲解。Part1:显示数据的内容主要是UITableView控件,但是我们需要定义一个类为他加载数据,以及定义和用户交互交互的回调函数,这两个方面是通过委托的形式实现的。根据MVC的设计形式,Apple将UITableView放置到一个UITableViewController类当中,使用UITableViewController类实例来控制UITableView的更个方面的属性。我们需要创建这么一 阅读全文

posted @ 2011-07-18 20:33 星尘的天空 阅读(1151) 评论(0) 推荐(0) 编辑

摘要: LINK Address:http://www.cnblogs.com/guola/archive/2011/05/04/2036259.htmliPhone中有UIEdgeInsets描述一个边。[pre]typedefstructUIEdgeInsets {CGFloattop, left, bottom, right;// specify amount to inset (positive) for each of the edges. values can be negative to 'outset'} UIEdgeInsets;[/pre]粉红色是下面的观点是w10 阅读全文

posted @ 2011-07-18 17:16 星尘的天空 阅读(533) 评论(0) 推荐(0) 编辑

摘要: Link Address:http://hi.baidu.com/lgj628/blog/item/41bc8bdf00c11a0b495403fa.html addSubview: 添加一个子视图到接收者并让它在最上面显示出来。 - (void)addSubview:(UIView *)view 讨论 这方法同样设置了接收者为下一个视图响应对象。接收者保留视图。如果你使用removeFromSuperview方法用来把视图移除他的显示列表,那么视图将会被释放。如果你想要在视图移除显示列表後保留并使用这个视图(如果,举个例子,你想要交换一些视图的位置。),你不许保留那个视图在他调用remove 阅读全文

posted @ 2011-07-18 13:15 星尘的天空 阅读(336) 评论(0) 推荐(0) 编辑

摘要: LINK Address:http://blog.csdn.net/bl1988530/article/details/6559908NSString*str=@"abc";NSString*astr=@"efg";NSArray*Array=[NSArrayarrayWithObjects:str,astr,nil];//保存数据NSString*Path=[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES)objectAtIndex:0];NSSt 阅读全文

posted @ 2011-07-18 10:51 星尘的天空 阅读(544) 评论(0) 推荐(0) 编辑

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 68 下一页