2011年7月27日

uitoolbar 圆角

摘要: #import // myToolBar.clipsToBounds=YES;// CALayer *l=myToolBar.layer;// // set corner radious// [l setCornerRadius:10];// // to apply border on corners// [l setBorderColor:[[UIColor c... 阅读全文

posted @ 2011-07-27 17:36 风乔 阅读(126) 评论(0) 推荐(0) 编辑

uitoolbar 删除背景

摘要: [myToolBar setBackgroundColor:[UIColor clearColor]]; @end后面加上 @implementation UIToolbar(Transparent)-(void)drawRect:(CGRect)rect { // do nothing in here}@end 阅读全文

posted @ 2011-07-27 17:24 风乔 阅读(207) 评论(0) 推荐(0) 编辑

UINavagationBar,UISearchBar,UIToolBar,UITabBar 自定义 Background Image

摘要: 这里运用了 object-c里面的一个类别,大体意思就是在不知道苹果封装起来的API内容的情况下,在外部程序中覆盖其原来的函数。大体这个意思吧。程序代码: 在程序的任何一个 .m文件 后面加上下面代码即可 记住 要在 @end 的后面加上。UINavigationBar:@implementation UINavigationBar (CustomImage2) - (void)drawRec... 阅读全文

posted @ 2011-07-27 17:17 风乔 阅读(358) 评论(0) 推荐(0) 编辑

mapview 标注多个地点

摘要: Very new to xcode and somewhat confused. I was able to use a custom image for annotation - works fine. Problem is that I want to do is have a different images for each of the annotations. What should... 阅读全文

posted @ 2011-07-27 16:03 风乔 阅读(268) 评论(0) 推荐(0) 编辑

导航