How do I isolate touch events from each other? For example, I have one method that should be called if the view detects a single tap, and another method that should be called if the view detects a double-tap. The problem with the way I'm doing it is that a double-tap is always interpreted as a single tap before it is intereperted as a do...
I'm making an iPhone-app with particles moving on a custom UIView, drawn with Core Graphics. I want my particles to leave a trace, so when the view is repainted I want it to fill the background with 0.8 alpha.
Anyone knows how to do this? I've tried setting the background color of the view to something transparent in IB, but that doesn...
Hi everyone, i am trying to fill the rows of my uipickerview with content and i'm trying to do it like this:
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
NSString *test;
for (int i; i<5; i++) {
if (row == i) {
test = [NSString stringWithFormat:@"%...
Hey guys...
I'm stuck trying to pop a TTPhotoViewController from three20. At first it did not come with a back button, but I have now implemented it and tried to pop the view with no luck. Here's a snippet of my code:
Button (this works) --
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:TTLocalizedStrin...
I'm trying to build a server that will handle many concurrent connections to iPhone clients without multi-threading. I will be sending messages to all clients approximately every 10-30 seconds, but most messages will be identical or very similar and easy to sort. Given the setup of high-concurrency but low need for data sorting, I am t...
So it appears as though my MPMoviePlayer no longer wants to seek forward, despite it being the case that seeking is done internally by the MoviePlayer, so all I should be doing is setting up notifications in order to know that seeking is occurring.
So I setup my notification as such:
[[NSNotificationCenter defaultCenter] addObserver:se...
Hi,
I have a very strange problem and I hope I can get some help.
I have ExpenseListViewController that has its fetechResultController, and once a row is selected from the tableview, the code push detailViewController to the stack.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
//...
I have made some progress and am editing the question to be current again. My big issue now is that the grouped table view will load, but shows all of everything in each section with each row. Also, my UIAlertView is returning all references to my plist (null). How would I fix this because the references to the plist are killing me. Any ...
I created a custom class that inherits from UIView and I want to display an instance on the screen. However, when I try to link the outlet from the App Delegate to the object I dragged onto the screen (which is that custom class I created) the link cannot be created.
What am I missing?
...
I have an application that uses ObjectiveResource and has a class that contains NSNumber properties. I am trying to format the NSNumber values as integers, and have the following code:
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setNumberStyle:NSNumberFormatterCurrencyStyle];
NSLog(@"Price: %@", [format...
Hi,
Wondering what I am doing wrong here. I am trying to pass an integer to my custom class and when I output the argument in the function is is some random number instead of what I pass. Here is my method call in RootViewController.m:
int orgID = organObj.organID;
NSLog(@"OrganID from RVC: %d", orgID); // this outputs the correct...
CODE
I have some code that adds a UILongPressGestureRecognizer gesture recognizer called _recognizer to a subclass of a UITableViewCell called cell:
...
UILongPressGestureRecognizer *_recognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(cellLongPressRecognized:)];
_recognizer.allowableMovement = 20;
_...
I'd like to have a tableview header that can remain at the top of the table, even when the user has scrolled down. I tried using a section header for this, but my table has multiple sections so I can't guarantee that one particular header will be at the top.
What should I do?
...
I have UITableviews that set another views UILabels depending on the row selected.
On the first selection of any row, the view loads with empty labels(nothing set), as soon as I navigate back and then when I choose a row after that it loads perfectly?
Why arent the labels being set on the first selection?
I have the following code
...
I have a need to play some sporadic sound effects in the background of an iPhone app. From everything I've read and experienced with iOS 4, I can keep my app running in the background as long as I am running GPS by specifying "location" as a background mode. That actually works. But at times I want to play a sound effect...in other wo...
I am trying to plan out a few iOS/server apps for internal use. On the iOS side I'll use Core Data, but I'm not so sure what many people do on the server side. I will be running a Mac Mini with OS X Server 10.6.X. This app will need to sync when the iOS device is on the internal WiFi as well as over 3G. Some of this data will need to be ...
Hello fellow developers,
My app "streams" content (fixed sized files, hence quotation marks) from an HTTP server into a local file. Then there is another component of the app that opens that same file and displays it (plays it).
This is done for caching purposes, so that when the same file is requested next time, it will no longer need...
I just came across a situation where my implementation of a tableview is working in 3.2 but fails to fire any of the tableview methods in iOS 4. The view controller in question is defined as a UIViewController and is setup to adopt the UITableViewDataSource and UITableViewDelegate protocols, and I'm hooking the tableview up as the view's...
Is it possible to create a page with formatted text that is stored in core data. The text would need to be displayed with paragraphs and a few images. I have already written the code to create a PDF with one line of text, but I am unsure of the pattern needed to layout the PDF in a nice document way. One of reasons is I had to write the ...
I am trying to have a tableview that leads to another tableview whose list items depend on the first view. I have the database set up properly and my problem is that when I select one item on the first page and go to the second view for the first time it works fine but when I return to the first page and go back to the second view again ...