上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 98 下一页
摘要: [formData appendPartWithFileData:upImageDataname:@"file"fileName:@"d.jpg"mimeType:@""];,因为 name,上传这两个文件名都是有要求的, 阅读全文
posted @ 2014-01-25 15:52 路在脚下, 阅读(149) 评论(0) 推荐(0) 编辑
摘要: + (NSString*)getPathByFileName:(NSString *)_fileName ofType:(NSString *)_type { NSString* fileDirectory = [[[VoiceRecorderBaseVCgetCacheDirectory]stri 阅读全文
posted @ 2014-01-24 14:34 路在脚下, 阅读(274) 评论(0) 推荐(0) 编辑
摘要: self.soundBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; 阅读全文
posted @ 2014-01-24 11:44 路在脚下, 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - 播放原wav - (IBAction)playWav:(id)sender { UIButton *btn = (UIButton *)sender; playIndex = btn.tag; ChatMessageInfo *info = [self.dataArra 阅读全文
posted @ 2014-01-23 17:16 路在脚下, 阅读(539) 评论(0) 推荐(0) 编辑
摘要: -(void)updateSound{ NSIndexPath *_path = [NSIndexPathindexPathForItem:playIndexinSection:0]; IMVoiceCell *cell = (IMVoiceCell *)[self.tableViewcellForRowAtIndexPath:_path]; self.soundBtn = cell.soundBtn; TTLog(@".......................%d",self.soundBtn.tag); 阅读全文
posted @ 2014-01-23 17:15 路在脚下, 阅读(123) 评论(0) 推荐(0) 编辑
摘要: -(void)initVoiceModule{ //初始化录音vc self.recorderVC = [[ChatVoiceRecorderVCalloc]init]; self.recorderVC.vrbDelegate = self; //初始化播放器 self.player = [[AVAudioPlayer alloc]init]; //添加长按手势 UILongPressGestureRecognizer *longPrees = [[UILongPressGestureRecognizeralloc]initWithTarget:selfaction:@sel... 阅读全文
posted @ 2014-01-23 16:52 路在脚下, 阅读(254) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - 播放原wav - (IBAction)playWav:(id)sender { UIButton *btn = (UIButton *)sender; ChatMessageInfo *info = [self.dataArray objectAtIndex:btn.t 阅读全文
posted @ 2014-01-23 13:52 路在脚下, 阅读(330) 评论(0) 推荐(0) 编辑
摘要: -(IBAction)initialTimer{ if (!soundTimer) { soundTimer = [NSTimerscheduledTimerWithTimeInterval:0.5ftarget:selfselector:@selector(testTimer) userInfo:Nilrepeats:YES]; } }-(IBAction)invalidate{ [soundTimersetFireDate:[NSDatedistantFuture]];// [soundTimer invalidate];}-(IBAction)restart{ [soun... 阅读全文
posted @ 2014-01-23 10:52 路在脚下, 阅读(161) 评论(0) 推荐(0) 编辑
摘要: CGSize timeSize = [self.timeLabel.textsizeWithFont:self.timeLabel.fontconstrainedToSize:CGSizeMake(MAXFLOAT, MAXFLOAT)];1, self.timeLabel.frame = CGRectMake(self.soundBtn.frame.origin.x - timeSize.width, self.timeLabel.frame.origin.y, timeSize.width, self.timeLabel.frame.size.height);2, self.... 阅读全文
posted @ 2014-01-22 11:32 路在脚下, 阅读(152) 评论(0) 推荐(0) 编辑
摘要: timer = [NSTimerscheduledTimerWithTimeInterval:0.1ftarget:selfselector:@selector(updateMeters) userInfo:nilrepeats:YES]; [recorderupdateMeters]; curCo 阅读全文
posted @ 2014-01-22 10:41 路在脚下, 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 98 下一页