this app was developed and works fine under ios 5.0, but crashes under ios 4.3

前端 未结 3 931
暖寄归人
暖寄归人 2021-01-14 08:24

I developed an iPhone app under iOS 5.0, and it works fine. But when it comes to iOS 4.3(Base SDK = latest iOS 5.0, compiler = Apple LLVM 3.0, Deployment Target = iOS 4.3),

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 09:07

    The AVAudioSession method

    - (BOOL)setMode:(NSString *)theMode error:(NSError **)outError
    

    Is marked in the documentation as being available only for iOS 5 and later. In fact given the recent addition of modes to the documentation, it looks like audio session modes are not available at all prior to iOS 5.

提交回复
热议问题