ios4

How to provide audio buffer to AudioQueue to play audio?

笑着哭i 提交于 2019-12-22 17:38:39
问题 In my application, I am receiving audio data in LinearPCM format, which I need to play. I am following iOS SpeakHere example. However I cannot get how and where I should provide a buffer to AudioQueue . Can anyone provide me a working example of playing audio buffer in iOS via AudioQueue ? 回答1: In the SpeakHere example playback is achieved using AudioQueue . In the set up of AudioQueue , a function is specified that will be called when the queue wants more data. You can see that in this

How to provide audio buffer to AudioQueue to play audio?

China☆狼群 提交于 2019-12-22 17:38:35
问题 In my application, I am receiving audio data in LinearPCM format, which I need to play. I am following iOS SpeakHere example. However I cannot get how and where I should provide a buffer to AudioQueue . Can anyone provide me a working example of playing audio buffer in iOS via AudioQueue ? 回答1: In the SpeakHere example playback is achieved using AudioQueue . In the set up of AudioQueue , a function is specified that will be called when the queue wants more data. You can see that in this

iPhone app fails to launch after install on iOS 4, works after device reboot

孤街醉人 提交于 2019-12-22 15:04:06
问题 I have an application that worked just fine on iOS 3.0 - 3.1.3. When testing an iOS 4 SDK ad-hoc build however the app behaves strangely. After installation (with either Xcode, iTunes or iPhone Configuration Utility) the app does one of two things: App launches and works, but fails on subsequent launches and just shows a black screen. App fails with black screen immediately. Debugging is not possible since the app never reaches a point where it can be debugged. The Xcode console shows no

iPhone app fails to launch after install on iOS 4, works after device reboot

允我心安 提交于 2019-12-22 15:03:31
问题 I have an application that worked just fine on iOS 3.0 - 3.1.3. When testing an iOS 4 SDK ad-hoc build however the app behaves strangely. After installation (with either Xcode, iTunes or iPhone Configuration Utility) the app does one of two things: App launches and works, but fails on subsequent launches and just shows a black screen. App fails with black screen immediately. Debugging is not possible since the app never reaches a point where it can be debugged. The Xcode console shows no

iPad Modal view not rotating

我与影子孤独终老i 提交于 2019-12-22 13:01:19
问题 So I have a modal view displaying in my app that has a little info for the user to fill out. The problem is that when the device is rotated, some animation occurs, but only in the frame. The form itself does not rotate. All the autorotate options are set to YES. I am displaying it when the user clicks on a field in a popover. This makes me suspect it has something to do with that but I am not sure. It is bizzare because if the device is in either view and then the modal window is displayed,

iPhone UITableViewCell with checkbox

谁说我不能喝 提交于 2019-12-22 12:37:58
问题 I have a custom-subclassed UITableViewCell which will include a few labels, to which I want to add some checkbox functionality. One question label and five options are multi-selectable in that UITableviewCell subclass Since I'm already in a cell, is it possible to use UITableViewCellAccessoryCheckmark to imitate checkbox functionality? Another option would be to navigate to another tableview using UINavigationController , but I want the user to see the options in the same page. Also, since I

Is it possible to replace the iOS incoming call screen?

六眼飞鱼酱① 提交于 2019-12-22 12:19:15
问题 Instead of showing the default "incoming call" screen, I would like to show my own screen (from my app) whenever I receive a call on my iPhone. Is that possible? 回答1: Short answer; no. iOS doesn't allow you to take over that functionality. At least not "out of the box". 来源: https://stackoverflow.com/questions/8223135/is-it-possible-to-replace-the-ios-incoming-call-screen

Drawing a Globe with OpenGL ES

不打扰是莪最后的温柔 提交于 2019-12-22 11:28:38
问题 I am trying to render a globe (sphere with maps on it) with OpenGL ES 1.1 on iOS. I am able to draw the sphere, and map borders but with one problem: lines that are not facing front in my view, are also being drawn on the screen . Like this: In the picture, you can see that America renders just fine, but you can see Australia rendered on the back. It is not supposed to be shown because it's in the back of the globe, and BLACK and PURPLE stripes in the globe are not transparent. Any ideas on

UITextChecker is what dictionary?

帅比萌擦擦* 提交于 2019-12-22 11:10:05
问题 Does anybody know what dictionary UITextChecker pulls from? I use it to verify that a word is in fact a valid word in an app. I have some questions from users about why specific words are available in other games (Boggle/Scrabble) but not in mine. Examples : ai, qi, qat, xu, ae, tae, ait, ain, lav, aa, shh, za I checked against /usr/share/dict/words and none of these words are in Websters Second International , so maybe UITextChecker uses this same source? They do show up in other

Change MKMapType in MKMapView and keep custom pinImage for annotations

元气小坏坏 提交于 2019-12-22 10:29:49
问题 I have set a custom pinImage for my annotations and when I change the type to MKMapTypeHybrid it reverts the pinImage setting to the standard pins. I'm setting the mapType in my viewWillAppear method of the map view controller. I'm setting my pinImage for the annotations like so (shortened for clarity): - (MKAnnotationView *) mapView:(MKMapView *) mapView viewForAnnotation:(id ) annotation { MKPinAnnotationView *customAnnotationView=[[[MKPinAnnotationView alloc] initWithAnnotation:annotation