上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: 在页面中 1 UIImage *segmentSelected = [[UIImage imageNamed:@"segcontrol_sel.png"] 2 resizableImageWithCapInsets:UIEdgeInsetsMake(0, 15, 0, 15)]; 3 UIImage *segmentUnSelected = [[UIImage imageNamed:@"segcontrol_uns.png"] 4 resizableIma... 阅读全文
posted @ 2013-02-18 15:12 diablo大王 阅读(6369) 评论(0) 推荐(0) 编辑
摘要: 1 UIImage *minImage = [[UIImage imageNamed:@"slider_minimum.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 0)];2 UIImage *maxImage = [[UIImage imageNamed:@"slider_maximum.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 0)];3 UIImage *thumbImage = [UIImage 阅读全文
posted @ 2013-02-18 14:21 diablo大王 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: 1 UIImage *tabBackground = [[UIImage imageNamed:@"tab_bg"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];2 [[UITabBar appearance] setBackgroundImage:tabBackground]; // 设置UITabBar背景图片3 4 [[UITabBar appearance] setSelectionIndicatorImage:5 [UIImage imageNamed:@"tab_s... 阅读全文
posted @ 2013-02-18 14:12 diablo大王 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1 [[UIImage imageNamed:@"button_textured_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)];其中Insets这个参数的格式是(top,left,bottom,right),从上、左、下、右分别在图片上画了一道线,这样就给一个图片加了一个框。只有在框里面的部分才会被拉伸,而框外面的部分则不会改变。4个参数是上边界,左边界,下边界,右边界距离,也可以为负值。 阅读全文
posted @ 2013-02-18 13:53 diablo大王 阅读(5816) 评论(0) 推荐(1) 编辑
摘要: 定制回退按钮1 UIImage *buttonBack30 = [[UIImage imageNamed:@"button_back_textured_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)];2 UIImage *buttonBack24 = [[UIImage imageNamed:@"button_back_textured_24"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 12, 0, 5)];3 [[UI 阅读全文
posted @ 2013-02-18 13:49 diablo大王 阅读(785) 评论(0) 推荐(0) 编辑
摘要: 在AppDelegate.m中设置背景1 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{2 UIImage *image = [UIImageimageNamed:@"tab_bg.png"];3 [[UINavigationBar appearance] setBackgroundImage:image4 forBarMetric... 阅读全文
posted @ 2013-02-18 13:12 diablo大王 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath2 {3 [tableView deselectRowAtIndexPath:indexPath animated:YES];4 // 不加此句时,在二级栏目点击返回时,此行会由选中状态慢慢变成非选中状态。5 // 加上此句,返回时直接就是非选中状态。6 } 阅读全文
posted @ 2013-02-18 09:46 diablo大王 阅读(13065) 评论(0) 推荐(0) 编辑
摘要: 由于url支持26个英文字母、数字和少数几个特殊字符,因此,对于url中包含非标准url的字符时,就需要对其进行编码。iOS中提供了函数stringByAddingPercentEscapesUsingEncoding对中文和一些特殊字符进行编码,但是stringByAddingPercentEscapesUsingEncoding的功能并不完善,对一些较为特殊的字符无效。而对这些字符则可以使用CFURLCreateStringByteAddingPercentEscapes函数,1 NSString *str = [NSString stringWithUTF8String:surl.c_s 阅读全文
posted @ 2013-02-17 19:13 diablo大王 阅读(11224) 评论(0) 推荐(1) 编辑
摘要: 1、AirPrint方式,苹果开发,无需下载任何软件,直接打印,但目前支持的厂商(HP)很少请打印设置受限。UIPrintInteractionControler是一个重要的打印类。2、iPrint方式,各个打印机厂商开发,需要下载软件安装,支持厂商很多(Epson、Brother、Canon),设置丰富。 阅读全文
posted @ 2013-02-17 09:33 diablo大王 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 在Folders项选择“Create groups for any added folders”,这样这个多层文件夹就会导入到工程中。 阅读全文
posted @ 2013-02-16 21:01 diablo大王 阅读(1107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页