iphone

Changing the position of the DragRefreshView in the three20 library

Hi I am using the three20 library for an iPhone project. As part of it I am using a pull to refresh (like fb and twitter) on a tableview. It works great, however it would be better if it was at the bottom of the tableview. I cant see any obvious configuration settings to do this (basically no API docs), so I have dug around and it loo...

How tro retrieve the iPhone's locale setting

Hello, I have googled for it but I am a bit surprised that I couldn't find it. I just want to access what locale the device has configured. I tried to find how to list all system propreties (in case I could find the locale there) but couldn't even find how to do that. I know(/think) I have retrieved the system properties before, but I ...

pulling data from a plist

I'm trying to pull some data from plist file and display it in a text field (from a UIButton click). the code below pulls the address of the plist and not the data. any help is greatly appreciated. thanks -(IBAction) buttonPress { NSString *path = [[NSBundle mainBundle] pathForResource:@"messages" ofType:@"plist"]; NSMutableArr...

reload view controller when tab pressed

Hello, I have several tabs in my tab bar controller and only one (the first one) for which I would need an automated reload each time I select its tab (and also when the app come back to the foreground). I did not find how to do this, do I need to recreate the tab bar controller manually each time ? Do I need to add a new set of view c...

For iPhone or iPad development, how do you create a scrollable view so you can place more on a screen?

I have an iPad app out on the app store which I'm interested in making an iphone version for. The whole screen is used in the iPad app, with basic strings that display information. How could I bring all that to the iPhone and make it scrollable? For example, to make it fit on the phone I would have the title on top, then a string statin...

how to detect a user tap on table view

i want to detect user touch on table view so that i can pass that particular section information to the next view to display it ... how can i do it ...

How to add a gesture recognizer to a UIWebView subclass?

If I add a gesture recognizer to a subclassed UIWebView instance called webView, e.g.: UILongPressGestureRecognizer *_longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(webViewGestureRecognized:)]; _longPressRecognizer.allowableMovement = 20; _longPressRecognizer.minimumPressDuration = 1.0f;...

How do I center UIBarButtonItem with custom look?

Alright, so I have a TableView in one of my Views in my iPhone app. I'm using a UINavigationController, so using that I created the UIToolBar at the bottom of the table. Works great. However, I want the items in the toolbar to resemble how the Facebook app has them: Not only would I like the Buttons (I will have only 2) to resemble...

iPhone compose email interface designing

Can someone please tell me the elements used to create the 'compose email' page in the iPhone? More specifically, what elements are used to create the light blue 'bubbles' that display the contacts in the To:/CC:/BCC: fields? I need to make a screen similar to that, except populated with a data source of my own. ...

[[[NSFetchedResultsController sections] objectAtIndex:0] numberOfObjects] > fetchLimit

I am currently having an issue where my UITableViewController/UITableView which uses an NSFetchedResultsController displays about 86 items when the fetchLimit on the fetchRequest for the FRC is 4. I know that 86 items satisfy the fetch itself, and I know that the reason that they appear is because the didChangeObject: atIndexPath... get...

Why does tel:// behave differently in a webview? (iOS 3.1)

I'm currently developing an iPhone app for a mall. One of the features is the ability to phone a mall tenant from within the app. I'm using NSURL *url = [[NSURL alloc] initWithString:@"tel:1(480)555-5555"]; [[UIApplication sharedApplication] openURL:url]; It works as I expect it to, no confirmation dialog and remains in the phone a...

[iphone] How to run apps on iPhone 3g after Xcode and SDK upgrade to latest

I upgraded to Xcode 3.2.3 with the latest iPhone SDK version 4 and I know that in order to publish in the App Store, your app has to be iOS (SDK 4) ready. But many of my beta-testers (including myself) are still running OS 3.1.x (the last version) and may not upgrade to iOS4 because it slows down their phone to a crawl (mostly for thos...

UITableView footer appearing in middle of screen because of keyboard

I have added a custom footer to a tableview using viewForFooterInSection I display a alertprompt where I get user input via a UITextField so the keyboard appears but when I press OK and the screen refreshes (via statement[self.tableView reloadData];) my footer is displaying ABOVE where the keyboard used to be so displaying in the middle...

sorting people by their role on a company

Im trying to find a good way to sort people by their Role within a specific company. What makes it tricky, is that a person can have one or more roles in different companies. At the moment I have an array of 'Person' objects, and each of these objects has a NSSet of 'Roles' objects associated to it. Similar to this: Person -personId ...

Adding view created in Interface Builder to Progmatically created view - can it be done?

Ok so I've downloaded an open source project that I'm looking at customising for personal use (unless it turns into a great project in which case who knows) but in either case I'm having some difficulty. From a starting point I'm finding creating UI elements using progmatic methods rather difficult, just can't find a good tutorial out t...

How hard is iPhone/iPad development

I've been developing for quite a while but while I consider myself competent (or better) with C++, Java, C# & AS3/Flex in areas from web-servers to desktop applications to 3D games, I'm aware all these languages are pretty similar; even on the libraries side I know what to look for based on using libraries that do similar things in anoth...

iPhone UI Design question - Best way to design forms?

Hi, I want to design an app that needs user to input few things like start date, end date, bunch of other options and some text comments for which I am planning to use pickers to select the data that will slide up modally. I will need to move the view up and down to make sure that the element being filled stays in focus when the pickers...

TTStyledTextLabel's url's font

Hey guys, in the TTStyledTextLabel, the url's font is a bit bigger(from what i noticed) and is blue-ish. I am just wondering how to change the url's font to a smaller size? ...

randomizing the string pulled from a plist file

I'm looking to randomize the output from a plist file. I've read about arc4random(), but I'm not sure how to incorporate it into the code. thanks for any help. here's the code that's currently pulling 'objectAtIndex:0' -(IBAction) buttonPress { NSString *path = [[NSBundle mainBundle] pathForResource:@"messages" ofType:@"plist"]...

Google Maps Marker Manager equivalent in Mapkit

Is there an equivalent of Marker manager in Google Maps in MapKit Framework which help cluster the markers in certain zoom levels? What Marker Manager does is as follows: "Adding a large number of markers to a Google map may both slow down rendering of the map and introduce too much visual clutter, especially at certain zoom levels. The...