I'd like to be able to create my own container subclasses of UIView which can react first to touches, before their subviews. This is tricky because normally a subview receives touch events (via touchesBegan: etc) before superviews. How does UIScrollView reverse this?
To be clear, I am not asking how UIScrollView behaves. I understand...
I need to change the images on a matrix of UIButtons, and the only thing I know of to address the buttons, is the tag. But I can not find a way to actually us this identifier.
The buttons are created programmatically during viewDidLoad.
Here is the code for creating the buttons:
#define N_ROWS 4
#define N_COLS 3
int N_IMG = 0;
...
I'm rendering PDF pages on iPhone using the code below. It works, but the margins seem much wider than when I view the same PDF using a Acrobat Reader or the Mac's Preview, and that consequently scales the content down much smaller than it otherwise would be. Is my code actually causing this behavior?
In regards to the bounds below, I...
Hi.
I'm trying to preset the value of a dropdown menu and the value of a text box in an HTML form. As soon as the user taps the button in my iPhone app, it enters the webview and I was hoping to preset one of the dropdown menus and text field.
How do I go about this?
I want to set the dropdown to value "4" and the text field to "Giro ...
Hi,
Once I connect my iPhone to my computer, is there anyway I can look at the directory structure on the phone?
Would it work like a USB device for example and let me copy files without using iTunes but just drag and drop through the Finder on a Mac?
Thanks,
Tee
...
Hello,
I have a question about the best performance approach...
Basically I have a UITableView, with cells and 4 images inside the cell. (The similar Photo Application thumbnail preview); 24 images seen...
Images in cells are loaded asynchronously from URL address and when downloaded they are saved in Documents directory on iPhone.
...
Is there any reason to not write iphone apps without useing the interface builder?
(or in other words, is it ok to write apps without the builder?)
...
I want to wait for latitude.text and longtitude.text to be filled in before sending a tweet, this code works fine, but I would rather not put the tweeting part in locationManager because I also want to sometimes update the current location without sending a tweet. How can I make sure the txt gets filled in before sending the tweet withou...
I want to implement the handling of an additional swipe gesture in my UITableViewController. However, it seems that in the case of tableviews the usual touch handling methods like -[touchesBegan::] of the controller are not called. How can I handle touches on a UITableView?
...
Hello,
We are going to set up a solution where the iPhone is requesting data from the server. We have the option to decide what kind of solution to put in place and we are not sure about which way to go.
Regarding SOAP I think I have the answer, there are no really stable solution for doing this (I know there are solutions, but I want...
Hello,
i have now put the site on:
http://www.ploetzeneder.eu/Dateien/test/index4.html
the manifest is there:
http://www.ploetzeneder.eu/Dateien/test/app-cache-demo.manifest
Why does it not work?
The Webserver where the relevant problem has this url:
http://www.pharao.mobi/WebAppproblem/
Username is the Username
Passwort is the Passw...
I've done a lot of research on when it's correct to release things, but it's all confusing to me. I think sometimes the Leaks program is off. Anyway...
background is a UIImageView
background.image = [UIImage imageNamed:@"greenbackground.png"];
Do I have to release background? I never alloced it and it's not set as a property, so I...
I am using the NSXMLParser to get new RSS stories from a feed and am displaying them in a UITableView. However now I want to take ONLY the images, and display them in a UIScrollView/UIImageView (3 images side-by side). I am completely lost. I am using the following code to obtain 1 image from a URL.
NSURL *theUrl1=[NSURL URLWithStr...
Hi,
I need and Activity indicator spinning in a modal Modal view that has an UIScrollView while
the content of the ScrollView(image from url) is loading.
Any ideas of how to get this done?
As a plus I need to know how to tell the ScrollView to behaves like the Photos Iphone Native App, I mean, load an image, adjust it to fit the scree...
Hi All,
Im building an iPhone game and would like to implement a fairly simple leaderboard using Openfeint.
However, I dont really want the full-blown openfient app to reside within my game, rather, I would like to simply use openfeint as a datastore and ranking calculator.
Ideally id simply like to display the scores much like Canaba...
Hello,
I am writing a class that opens an AudioQueue and analyzes its characteristics, and then under certain conditions can begin or end writing out a file from that AudioQueue that is already instantiated. This is my code (entirely based on SpeakHere) that opens the AudioQueue without writing anything out to tmp:
void AQRecorder::St...
Hey guys I dont know what happened to Xcode.. I was debuggin my app when after a while of writing some code I tried to compile and an error message appeared...
Building error precompiling app_prefix.pch
arm-apple-darwin9-gcc-4.2.1: te: no such file or directory
I've never had this error before and I am no t pretty sure of how to solve...
Hello,
I have a NSThread that i would like to timeout after a certain amount of time.
[NSThread detachNewThreadSelector:@selector(someFuntion) toTarget:self withObject:nil];
- (void) someFunction {
//Some calculation that might take a long time.
//if it takes more then 10 seconds i want it to end and display a error message
}
...
I've got an app with the following class:
@interface SearchViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate>
@property (nonatomic, retain) IBOutlet UISearchBar *search;
How can I customize UISearchBar? I'd like to add a segmented button to allow for search options (and/or/phrase).
...
I have been having huge issues with this, so I drew a diagram...
I successfully get to the CLASS A - METHOD B but at that point, IBOutlet Z is Nil? :(
Any ideas?
note
Somebody told me it might be an Overrelease and to use NSZombieEnabled but that confused me
...