¡@

Home 

2014/10/15 ¤U¤È 10:09:00

iphone Programming Glossary: fileid

iPhone: get duration of an audio file

http://stackoverflow.com/questions/1246637/iphone-get-duration-of-an-audio-file

to get that should give you the estimated duration. Code NSURL afUrl NSURL fileURLWithPath soundPath AudioFileID fileID OSStatus result AudioFileOpenURL CFURLRef afUrl kAudioFileReadPermission 0 fileID UInt64 outDataSize 0 UInt32 thePropSize.. soundPath AudioFileID fileID OSStatus result AudioFileOpenURL CFURLRef afUrl kAudioFileReadPermission 0 fileID UInt64 outDataSize 0 UInt32 thePropSize sizeof UInt64 result AudioFileGetProperty fileID kAudioFilePropertyEstimatedDuration.. kAudioFileReadPermission 0 fileID UInt64 outDataSize 0 UInt32 thePropSize sizeof UInt64 result AudioFileGetProperty fileID kAudioFilePropertyEstimatedDuration thePropSize outDataSize AudioFileClose fileID You can check the docs here share improve..

iphone: upload image to server using ASIFormDataRequest

http://stackoverflow.com/questions/5923862/iphone-upload-image-to-server-using-asiformdatarequest

appendData NSString stringWithFormat @ Content Disposition form data name userfile filename ipodfile @.jpg r n self.fileID dataUsingEncoding NSUTF8StringEncoding body appendData NSString stringWithString @ Content Type application octet stream.. appendData NSString stringWithFormat @ Content Disposition form data name userfile filename ipodfile @.jpg r n self.fileID dataUsingEncoding NSUTF8StringEncoding body appendData NSString stringWithString @ Content Type application octet stream.. savedImagePath documentsDirectory stringByAppendingPathComponent NSString stringWithFormat @ images ipodfile @.jpg fileID NSData imageData UIImageJPEGRepresentation itemImageView image 0.05 if imageData nil imageData writeToFile savedImagePath..

AudioFileSetProperty returning 'kAudioFileUnsupportedPropertyError (pty?)'

http://stackoverflow.com/questions/8658386/audiofilesetproperty-returning-kaudiofileunsupportedpropertyerror-pty

'kAudioFileUnsupportedPropertyError pty ' I'm having difficulties writing a audio file's metadata AudioFileID fileID nil AudioFileOpenURL __bridge CFURLRef url kAudioFileReadWritePermission 0 fileID CFDictionaryRef piDict nil UInt32 piDataSize.. a audio file's metadata AudioFileID fileID nil AudioFileOpenURL __bridge CFURLRef url kAudioFileReadWritePermission 0 fileID CFDictionaryRef piDict nil UInt32 piDataSize sizeof piDict AudioFileGetProperty fileID kAudioFilePropertyInfoDictionary.. kAudioFileReadWritePermission 0 fileID CFDictionaryRef piDict nil UInt32 piDataSize sizeof piDict AudioFileGetProperty fileID kAudioFilePropertyInfoDictionary piDataSize piDict NSLog @ @ __bridge NSDictionary piDict NSMutableDictionary dict __bridge..