上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
  2012年6月26日
摘要: 1、@selector(showAlertView:)——带冒号的,表示带参数。其行为对应如下形式:-(void)showAlertView:(id)sender{}2、@selector(showAlertView)——没有冒号,表示无参数。其行为对应如下形式:-(void)showAlertView{} 阅读全文
posted @ 2012-06-26 10:31 tx天翔 阅读(215) 评论(0) 推荐(0) 编辑
  2012年6月20日
摘要: AppDelegate * appDelegate = [[UIApplication sharedApplication] delegate];AppRaterView * raterView = [[AppRaterView alloc] initWithNibName:@"AppRaterView" bundle:nil]; CGRect f = CGRectOffset(raterView.view.frame, 0.0, 20.0); raterView.view.frame = f; [appDelegate.window addSubview:raterVie 阅读全文
posted @ 2012-06-20 17:43 tx天翔 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1、NavBar背景图片及barbuttonItem的颜色设置: picker.navigationBar.tintColor = [UIColor colorWithRed:209.0/255 green:183.0/255 blue:126.0/255 alpha:1.0]; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0) { [picker.navigationBar setBackgroundImage:[UIImage imageNamed:@"nav_bg.png"] fo 阅读全文
posted @ 2012-06-20 11:07 tx天翔 阅读(1433) 评论(0) 推荐(0) 编辑
  2012年6月19日
摘要: 直接使用本地浏览器打开url:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunesconnect.apple.com"]]; 阅读全文
posted @ 2012-06-19 16:34 tx天翔 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 示例如下:UIActionSheet *playerIconSheet = [[UIActionSheet alloc] initWithTitle:@"" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:nil, nil]; if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])//判断camera 阅读全文
posted @ 2012-06-19 11:24 tx天翔 阅读(654) 评论(0) 推荐(0) 编辑
  2012年6月18日
摘要: NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]); NSLog(@"name: %@", [[UIDevice currentDevice] name]); NSLog(@"systemName: %@", [[UIDevice currentDevice] systemName]); NSLog(@"systemVersion: %@", [[UIDevice currentDevice] systemVersi 阅读全文
posted @ 2012-06-18 16:02 tx天翔 阅读(8314) 评论(0) 推荐(1) 编辑
  2012年6月12日
摘要: 在做动画效果时,使用的渐进效果好。但是,在做修改参数时,需要是即时的修改,因此,就不要使用animated的动画效果了。例子如下:[self.pickerView.playerPicker setContentOffset:CGPointMake(elf.pickerView.playerPicker.contentOffset.x + 52, self.pickerView.playerPicker.contentOffset.y) animated:NO];//animated:YES 时,self.pickerView.playerPicker.contentOffset.x 不是即时修 阅读全文
posted @ 2012-06-12 11:14 tx天翔 阅读(2071) 评论(0) 推荐(0) 编辑
摘要: 1、选中项目中的.plist文件。2、右侧列表中,有两处修改: @1、Icon files(IOS 5)->Primary Icon ->Icon already includes gloss effect ->选为YES; @2、Icon already includes gloss effect... 阅读全文
posted @ 2012-06-12 09:32 tx天翔 阅读(220) 评论(0) 推荐(0) 编辑
  2012年6月11日
摘要: AVAudioPlayer 提供了大量的特性,包括暂停播放,调整音量,监控音频的峰值和均值等等。AVAudioPlayer *player;NSString *path;// 设置音乐文件路径path = [[NSBundle mainBundle] pathForResource:@"sound-file" ofType:@"mp3"];// 判断是否可以访问这个文件if ([[NSFileManager defaultManager] fileExistsAtPath:path]) { // 设置 player player = [[AVAudioP 阅读全文
posted @ 2012-06-11 15:45 tx天翔 阅读(3687) 评论(0) 推荐(0) 编辑
摘要: 1、 NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateStyle:NSDateFormatterMediumStyle]; [formatter setTimeStyle:NSDateFormatterMediumStyle]; NSLog(@"%@", [formatter stringForObjectValue:run.date]); 阅读全文
posted @ 2012-06-11 09:22 tx天翔 阅读(868) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页