What is the right way to play next file using Audio Queue Services? When "play next" button is pressed should I first call AudioQueueStop and then AudioQueuePrime/AudioQueueStart or it is enough to just fill buffers with next file data?
The problem is that the latter gives me sound glitches on iPhone.
...
I have a ViewController that works perfectly with a button that trigger an action. I would like to replace the button with a shake event so I've googled it around and created a ShakeDetector class that ineherits from UIView
and my implementation is as follow:
@implementation ShakeDetector
- (void)motionBegan:(UIEventSubtype)motion...
I am POSTING some data from an IPhone application want want to be able to read this data from the server. I have never created a http post server before and i am unsure which is the best way to read this data.
This is the IPhone Code posting the data:
/*
turning the image into a NSData object
getting the image back out of the UIIma...
Hi,
with XCode 3.2.1 Apple delivered a built-in Clang static analyzer.
I am working on an iPhone project which uses some C-Code (one .h and .c file). When running Build and Analyze, Clang refuses work. The build results window just says Build Succeeded.
Any ideas how to get it running with C/C++-Code?
Regards,
Norbert
...
I am using UIMapView to display locations on the iPhone. I want to do a directions from current location to the location of interest, I don't think its possible using MapKit (but if it is please inform) So I will open either the Google Maps application or safari to display it.
Can i do this by specifying co-ordinates from (current locat...
Hi all,
I am developing an iPhone app for uni and we create an sqlite database file within the iPhone's sandbox directory.
Our application writes internally to this file, I am wondering how it would be possible to get this file back to my desktop. I don't really mind how it can be done, any way is fine. Maybe it is possible to even do ...
Hi
I’m new in iphone development world and I’m trying to call a web service using the HTTP method POST.
To do that I'm using the NSMutableUrlRequest. My problem is that the DidReceiveData delegate is never called and the NSUrlConnection doesn’t return null.
Here is my code :
- (void)connection:(NSURLConnection *)connection didRecei...
I am currently doing a lot of data wrangling. I ingest a lloonngg NSData byte streams and then parse that data. The parsing is trivial. However, I have to simulate consumption of the data as I parse via not particularly elegant bookkeeping. Here is what a typical method looks like in the category of NData I have implemented:
// Grab a l...
I've got a custom ModalDialog class, which I've got working well in most situations. It returns its results via a delegate method, which then continues the app appropriately based on the user's button selection.
However, there are some places in my app where the dialog really needs to pop up in the middle of a method (for example, my ga...
I have a library I made, and now I want to utilize it in an application. I've believe I've properly linked to the library. Here are all the things I've done:
Set the header search path
Set other linker flags to "-ObjC"
Added the static library xcode project
Made sure the lib.a was listed as a framework target
Added the library as a dir...
In MonoTouch, we ran into this problem with the Movie Player sample in that it would only play the video once, but would not play it a second time.
I am asking this question to post an answer, since it has been hitting various folks.
...
Hello guys,
I spent several hours trying to load subclassed UINavigationController from another NIB while taping a tabBarItem. Does anyone have any idea, how to do it correctly?
The latest test:
MainWindow.xib - UITabBarController with 4 tabs, one is named News and is set to "Navigation Controller"
While News tab is selected - class id...
Hi,
I am noticing that my view (one of the views managed by UITabBarConteroller) looses firstresponder status after keybardWasHidden message.
It means unless in the the keybardWasMessage I explicitly call
[self becomeFirstResponder]
I no longer receive motion events. While workaround is simple enough, I was trying to undestand the a...
I have a UITableView which occupies the entire screen, besides a navigation bar.
The UINavigationItem has a UIBarButtonItem that shows a previously hidden UIPickerView when tapped.
I'm trying to resize the UITableView so that it occupies the rest of the screen not used by the now visible UIPickerView.
I know the framework already does ...
Hi there,
I submitted my iPhone application in Apple Store through online. It is in Review status. I just want to know how many days generally Apple will take to review an application?
Thanks.
...
I'm writing an iPhone app that requests data from a web service, and in order to get that data, I'm using NSMutableURLRequest.
The problem that I am having is that the amount of data being requested is quite large (~11Mb), and this is causing my app to be killed by the OS.
Is there any way of streaming the data in a way that will allow...
What's the best way to get a reference to other views using default controllers? My MainView.xib is a TabBarController, and I want to know the best way to call methods from one view on another, or change data properties. Any transfer of data will also necessitate that the tabs switch, but I haven't figured out how to programatically cont...
Whenever I try to build my iPhone app in Xcode 3.2.1 I get an error that says:
Code Sign error: The identity 'iPhone Distribution: foo' doesn't match any identity in any profile
This is a distribution certificate, however it worked perfectly with a developer certificate.
I have revoked and installed all of my iPhone certificates, ...
I'm trying to use CGBitmapContextCreate. According to Apple's documentation the ApplicationServices framework is required. When I went to add it, it wasn't in the list available (the latest version of Xcode changes things a bit), but I managed to find it manually in the Frameworks folder. However, I'm still getting "framework not found" ...
After doing a lot of searching and getting a basic idea of how to implement iPhone audio recording with AVAudioRecorder, I still have not managed to get it working. Can anyone point me to a tutorial or discussion that provides a clear-cut, full explanation without leaving things out? Thanks!
...