I need to change my audio depending on whether or not headphones are plugged in. I'm aware of kAudioSessionProperty_AudioInputAvailable, which will tell me if there's a microphone, but I'd like to test for any headphones, not just headphones with a built-in microphone. Is this possible?
...
Hi!
I'm coding a map app for iPhone, like Google Maps but with my own maps.
What I have so far is working, but sadly, slower than I would like.
I'm basically drawing the correct map tiles in each drawRect:
[image drawAtPoint:CGPointMake(x, y)];
X and Y are being calculated in each call to drawRect
( these calcs are not very e...
Hi guys , I think my head soon explode.
I've been working on my application for some time and finally git an iPhone for testing on device, now I'm trying to run my app on iphone but can't do it. I've done all necessary steps but getting an error
[BEROR]Code Sign error: a valid provisioning profile matching the application's Identifi...
Is it possible to upload photos without creating a native app?
...
Hello,
I have an array containing all string values. Contents of the array are order_id, waypoint_x, waypoint_y. How do I sort it based on order_id and have the results like 1, 2, 3, 4.... (i.e. as if the field was an integer type and string)
When I use the waypoints as the array is at the moment the results come out 1, 10, 11, 12...
...
how can an array be created that randomizes results from 3 different values 0,1,2 and then makes 2 combinations of those
for example :
i have
int values[3] = {0,1,2}
blah = values[arc4random() %3];
i tried using this from the arc4random help post on this site however when i do the above the app crashes. Im a begginer to arc4random ...
Not able to connect iphone simulator to iphone device in bluetooth gamekit application (iPhone SDK) ?
same bluetooth application is installed in both simulator and device, when i am trying to connect device with simulator (via bluetooth), in simulator side(mac system) i am able to get device, but when i select that device, app saying th...
I have a UIDatePicker in interface builder which is connected to my outlet, and i release it in my dealloc method.
It leaks so much, when i load the view controller and it leaks even more as i scroll through it
Leaked Object: NSDateComponents
Responsible Frame: UIDatePickerView
Number of leaks: about 30 (depends on
how much i scroll t...
Is kCLErrorNetwork "fatal", i.e. can location still be acquired or should we tell Core Location to stop updating the location?
In iOS 3.0, Core Location added an error code, kCLErrorNetwork. It is described as a "general, network-related error". Does this mean that neither the cell network nor Wi-Fi is available and Core Location can on...
I have a root UIView with two subviews:
a custom UIView subclass
a UIScrollView
The custom UIView subclass has some state that is updated by an NSTimer that fires every N seconds. When the view's state is updated, the view calls [self setNeedsDisplay], which triggers a redraw shortly thereafter. This all works as expected.
However, ...
Hi, How to find out currently used DNS nameservers on iPhone? Using SDk 4.
Basically i am looking for an equivalent function on iPhone OS to GetNetworkParams on Windows
Thanks
...
The Settings Bundle is supposed to be a pretty straight forward thing, but for some reason I'm not getting it to work.
In my settings bundle's Root.plist I'm using a PSToggleSwitchSpecifier and a PSTextFieldSpecifier. Both have Type, Title, Key, and DefaultValue. And it shows up properly when looking at it in the Settings on the iPod To...
For an iPhone application I want to draw a circle, that is only for an x percentage filled.
Something like this:
I have no problems calculating the radius, the degrees or the radians, that is no problem. Also drawing the circle is already done. But how do I get the iPhone SDK to draw the part that is filled.
I can draw a rectangle t...
I have created an app which runs fine on devices using iOS 3.2 or above but on older versions of the OS it crashes with the error
dyld: Symbol not found: _OBJC_CLASS_$_CATextLayer Referenced from: /var/mobile/Applications/70D5888B-B531-484F-997D-776B432FFA52/Test.app/Test Expected in: /System/Library/Frameworks/QuartzCore.framework/Quar...
I have an application which binds a map with user's location, 2 pictures and some text in the xml file and send it to the other user through email.
Now the question is that if the other user who is receiving it, how i should make this xml file parsed in my application so that the receiver can have a sensible look of the data like the ma...
In am currently creating a Navigation-based application for the iPhone, where the root view of the NavigationController is the main menu (home). There are 3 other views (named View1, View2 and View3), which can be accessed in this manner; main menu -> View1 -> View2 -> View3.
Each of the Views has a 'Home button' that will call 'popToRo...
How can I trace the method calls and their sequence while a iPhone app is running? Which Instrument I should use?
...
My client is in an Iphone app (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my Iphone app to talk to my server? I know you can use HTTP, but it is a request / response protocol. I could always request something and wait for asynchronous notifications from server. Then request ag...
i want to sum to values which i get from a textfiel.
how can i cast a textfield value in double value ?
Regards Caglar
...
Hi,
I am developing an app but have yet to get the optimal navigation flow working.
To give you an idea of the structure of my app, I have a main view that allows the user to start a new game or view high scores. At the end of a game, I would like to give the user the choice of viewing high scores or going back to the main menu - I hav...