03 2013 档案

摘要:选择一个CategoryAVAudioSessionCategoryAmbient或kAudioSessionCategory_AmbientSound——用于非以语音为主的应用,使用这个category的应用会随着静音键和屏幕关闭而静音。并且不会中止其它应用播放声音,可以和其它自带应用如iPod,safari等同时播放声音。AVAudioSessionCategorySoloAmbient或kAudioSessionCategory_SoloAmbientSound ——类似于AVAudioSessionCategoryAmbient不同之处在于它会中止其它应用播放声音。 这个categor 阅读全文
posted @ 2013-03-15 14:33 高笑228 阅读(15858) 评论(0) 推荐(0)
摘要:可以达到文字描一圈白边的效果继承UILabel以后重载drawTextInRect- (void)drawTextInRect:(CGRect)rect {CGSize shadowOffset = self.shadowOffset;UIColor *textColor = self.textColor;CGContextRef c = UIGraphicsGetCurrentContext();CGContextSetLineWidth(c, 1);CGContextSetLineJoin(c, kCGLineJoinRound);CGContextSetTextDrawingMode(c 阅读全文
posted @ 2013-03-11 10:22 高笑228 阅读(230) 评论(0) 推荐(0)
摘要:- (void) setUpAndAddAudioAtPath:(NSURL*)assetURL toComposition:(AVMutableComposition *)composition start:(CMTime)start dura:(CMTime)dura offset:(CMTime)offset{ AVURLAsset *songAsset = [AVURLAsset URLAssetWithURL:assetURL options:nil]; AVMutableCompositionTrack *track = [composition addMutableTrack.. 阅读全文
posted @ 2013-03-04 15:39 高笑228 阅读(4139) 评论(0) 推荐(0)