Hello,
I have several UIButtons that control the iPhone's music player.
I would like to have the music player seek backwards if the previous button is touched and held, but skip to the previous item if the button is single-tapped.
Currently, I am able to skip to the previous item with a tap, but touching and holding will seek backward...
Hi,
is there anything like an identifier of a NSSThread? The following code:
NSLog(@"thread: %@",(NSThread*)aThread);
results in something like this:
Thread: {name =
(null), num = 6}
Is there a way to get this thread number, maybe?
Best,
heinrich
...
I have working snippet along the lines of:
for (UIButton *b in buttonMapping) {
[b setTitle:@"yo!" forState:UIControlStateNormal];
[NSThread sleepForTimeInterval:1.0];
}
There's four buttons, all four buttons update. However, instead of updating one per second, four seconds go by & they all update.
How can I force UIButton to up...
I'm new to iPhone development and XCode in general and have no idea how to begin troubleshooting an EXC_BAD_ACCESS signal. How can I get XCode to break at the exact line that is causing the error?
I can't seem to get XCode to stop on the line causing the problem, but I do see the following lines in my debug console:
Sun Oct 25 15:...
For my app i have it far enought that it will ask for a confirmation and account for an in-app purchase, but I don't know how to enable the item after the purchase is complete.
SKPayment *payment = [SKPayment paymentWithProductIdentifier:@"com.silver.tapp.page2"];
[[SKPaymentQueue defaultQueue] addPayment:payment];
Thats what i have ...
Word on the street is that glDrawElements is much faster then glDrawArrays.
So I want to display everything using glDrawElements. The problem I have is that I have a bunch of images I want to pop onto the screen. Each image is in a different texture.
Is it possible to use glDrawElements to do this?
How can I switch the texture
...
What's the lowest optimal sample rate for audio recording on iPhone while still yielding good file size? Currently I am using 44.1kHz but it produces file that's way too big.
...
Hi,
I'm trying to include some C++ code into my iPhone project and I'm getting the following compiler error:
"error:expected initializer before '<' token"
at this code construct:
template<typename T, P_UINT_32 BEG, bool OQ, bool OVR, bool DBG>
P_UINT_32 EKType<T, BEG, OQ, OVR, DBG>::getSizeX() const {
return n;
}
It looks...
Is it bad form to point the view property of my UIViewController subclass directly at a UIImageView? Or should my UIImageView be embedded in a UIView?
I can't think of any problems with it, and it seems to work alright, but I thought I'd ask the hive-mind if there are any negative consequences to doing this.
...
Im using a library for extracting EXIF data from google code.
I assume with iPhone OS 3 that you can use UIImagepicker to do it.
I just want to be able to extract the f-Stop, Shutter Speed and ISO data from the image.
I want to discard the image and just use the information that I store up.
Would I end up extracting the tag data in the...
I submitted an update for one of my iPhone apps last week and just realized I forgot to change the bundle version in Info.plist before I submitted. The update fixes a critical bug, so I want to get it into the store as soon as possible. The app update has not been approved yet. I am debating on replacing the binary with the updated bundl...
For an app I'm building, I have a custom "old map" effect PNG that I'd like to overlay on the MKMapView view. Unfortunately, neither way I've tried to do this is exactly right:
Add a subview to the MKMapView (issue: the UIImageView for the PNG gets placed above the Annotation pins, which looks weird
Make the image an annotation view it...
Plist loaded in AppDelegate with following structure:
Root ----> Dictionary
Test Item ----> Array
Item 1 ----> Dictionary
HeaderTitle ----> String ----> Section 1
Items ----> Array
Item 1 ----> Dictionary
FirstName ----> String ----> Any Name
SecondName ----> String ----> Another Name
CellIcon ----> String ----> Icon.gif
View -...
I am having trouble getting Cocoahttpserver from Duesty Designs (awesome open source library makers of CocoaAsyncSocket) to serve images from my app bundle. Using the example iPhone project I can serve up an html file from the Resources dir in my project, but images refernced like:
<img src='foo.png' />
are not rendered.
Does anyone ...
I have just heard that the iphone cannot do double natively thereby making them much slower that regular float.
Is this true? Evidence?
I am very interested in the issue because my program needs high precision calculations, and I will have to compromise on speed.
...
Hi,
I am having a problem with creating a navigation controller after on the other side of the application :) ... I mean after clicking this small info button and flipping on the other side ...
I'm getting this error:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFrom...
1) I know the start point of the arrow and I know the endpoint.
I have no idea how to draw the head of the arrow.. I'm assuming that the other two points of the head are 45 degree angles away from the end point...
Anyone know of the formulas needed to do this?
...
I am using UISearchDisplayController to implement the search feature on a table view. My table view cell uses custom background image.
When you first type a letter into the search textfield, the search results start appearing. However, when I click cancel at this point, the screen flashes white. This is not as noticeable if everythin...
I've got two controls on an iPhone screen - a TableView and a UIPickerView. When you select the single cell in the TableView you're taken to another screen where you're show a list of clothing types. Selecting a single clothing item from the list takes you back to the first screen. Based on your selection, the number of components in the...
I have a menu screen that implements UINavigationController and on top of that screen, using presentModalViewController, i place another screen that I wish to have another IUNavigationController. I have tried to implement another navigation controller to handle the new screen but I either get a navbar 1/8th the way down the screen and it...