上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: switch (type) { case truthType:question = ...... break; default: question = nil;//这个最好加上 break; 阅读全文
posted @ 2012-08-17 15:50 zander 阅读(303) 评论(0) 推荐(0)
摘要: 解决5.0 以下版本自定义 navigationBar 背景图片原因:在5.0 以下的api 中没有提供setBackgroundImage:(UIImage*)backgroundImage forBarMetrics:(UIBarMetrics)barMetrics 方法this method in 5.x api:- (void)setBackgroundImage:(UIImage *)backgroundImage forBarMetrics:(UIBarMetrics)barMetrics __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0 阅读全文
posted @ 2012-08-17 10:42 zander 阅读(481) 评论(0) 推荐(0)
摘要: 推荐相关不错的文章1.http://www.189works.com/article-34872-1.html(详细介绍UIImagePickerController类)2.http://xyyk.iteye.com/blog/838038主要讲解[popoverControllerpresentPopoverFromRect:selectRectinView:self.viewpermittedArrowDirections:UIPopoverArrowDirectionAnyanimated:YES]; 这个方法UIImagePickerController类照相以及从相册中取得相片1. 阅读全文
posted @ 2012-08-16 17:54 zander 阅读(781) 评论(0) 推荐(0)
摘要: UIActionSheet类 在 iphone和ipad 中有很大的不同主要区别:显示规则不同iphone中直接从下推出ipad中在UIPopoverController 中显示的详细我也不都说了 下面的连接有详细的介绍:http://blog.sina.com.cn/s/blog_7b758d4d0100xvn3.html 阅读全文
posted @ 2012-08-16 16:50 zander 阅读(1456) 评论(0) 推荐(0)
摘要: AVFoundation.framwork框架 :用于播放音频文件1. 导入框架 (省略)2. 类中引入框架#import "AVFoundation/AVFoundation.h"3. 声明AVAudioPlayer 声音文件播放类NSString *path = [[NSBundle mainBundle] pathForResource:@"chooseplayer"ofType:@"mp3"]; NSError *error; if ([[NSFileManager defaultManager] fileExistsAtPa 阅读全文
posted @ 2012-08-15 18:18 zander 阅读(495) 评论(0) 推荐(0)
摘要: if ([UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {相机可用} 阅读全文
posted @ 2012-08-15 17:41 zander 阅读(248) 评论(0) 推荐(0)
摘要: [rightBtn setBackgroundImage:[UIImageimageNamed:@"btn_help_ipad.png"] forState:UIControlStateNormal];UIControlStateNormal 按钮的一种状态 :普通状态 或者是 ..... (非选择 非高亮)按钮有很多状态参见:http://blog.csdn.net/yan_daoqiu/article/details/7332973 阅读全文
posted @ 2012-08-15 15:31 zander 阅读(18336) 评论(0) 推荐(0)
摘要: 导航栏在纵向模式下导航栏为44像素高,在横向模式下为32像素高,导航栏提供了一个很少用的提示模式,该模式将高度扩展了30像素,在纵向模式下为320*74像素,在横向模式下为480*74像素。要向导航栏添加提示,则设置self.navigationItem.prompt = @"................"。 阅读全文
posted @ 2012-08-15 15:23 zander 阅读(259) 评论(0) 推荐(0)
摘要: if ([self.navigationController.navigationBarrespondsToSelector:@selector(setBackgroundImage:forBarMetrics:)]) { [self.navigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"nav_bg.png"] forBarMetrics:UIBarMetricsDefault]; }[self.navigationController.navigationBarresponds 阅读全文
posted @ 2012-08-14 18:29 zander 阅读(227) 评论(0) 推荐(0)
摘要: ios判断用户设备: if (UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPhone) { NSLog(@"Your dervice is phone!!"); }elseif (UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad) { NSLog(@"Your dervice is ipad!!"); }else{ NSLog(@"未识别您的设备......"); }设备类型 iphone 和 ipad --- 下边的枚举UIUser 阅读全文
posted @ 2012-08-14 18:26 zander 阅读(390) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页