iphone

iPhone niche applications

Hi there, we want to develop a small utility for the iPhone for a very small set of users... We're thinking about developing it with PhoneGap/html/javascript as we want to make it available under other mobile platforms. Given that it's only for a small number of users within a particular organisation, would we submit that to AppStore? ...

How do I push another viewController onto the navigationController from within a tabviewController?

Hi, I have a project set up using these two tutorials. http://twilloapp.blogspot.com/2009/03/how-to-embed-navigation-controller.html and the link for the second tutorial is at the bottom of the first. The tutorial is slightly outdated but I managed to get it to work as advertised. Now I want to push a new detailedView onto the Navi...

How can I draw a gradient filled arc, i.e. rainbow?

Hello all, The following code draws a half circle with a gradient from red to green. This is not what I wanted. I expected an arc of width 5 pixels that is painted with the gradient. Any help in showing where I've gone wrong will be greatly appreciated. Charles -(void) DrawRainbow { // Create an arc path float x = 150.0; float y = 22...

Google maps style uipopovercontroller

Hi, I have a universal app. On the iPad, when pressing an annotation pin it shows the callout bubble. When I press the desclosure button, it loads a uipopovercontroller with a detailed view. What I want to know is how I can load the uipopovercontroller the same way the Google Maps load the uipopovercontroller. Is there a guide out ther...

Are wrapper classes banned in the iPhone OS Developer Agreement?

Hey everyone, I am a little confused after reading this thread on the revisions to the iPhone Developer Agreement. While it lists the languages that are permitted, I don't understand what classifies as falling under what is banned. Does this include wrapper classes? What if the code is written in Objective C but is not an official Ap...

White disclosure indicator

In my app I have a UITableView with a UITableViewCellAccessoryDisclosureIndicator. I don't want to change the whole indicator, but I want to make it white instead of gray. How can I do it? Thanks in advance! ...

shouldAutorotateToInterfaceOrientation always get called more than once.

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation My code get this event more than once while device is rotating. I'm searching in apple docs for reference but seems no lucky. Could any one offer a hint why this is happening? My code is an apple doc sample code, without any change but some logs...

addSublayer vs addSubView which is more efficient?

I have 5 UIImageViews for displaying 5 images. For my app, I need swap the order of them depending on some events. I achieve this by calling: [anImageView1 removeFromSuperview]; [self.view insertSubview:anImageView1 aboveSubview:anImageView2]; Recently, I've come across a different method for doing this using 1 UIView and 5 UIImageVie...

Apple Itunes app limitations

I have a iphone game that i am creating and wanted to know a couple limitations once the person downloads the game and they sign in with a user name i want them to be able to download new content maps packs etc. What is the limit in size these downloads can be? where can this content be stored? thank you! ...

iPhone: multi-part post using NSURLRequest

I've seen a few articles, forum posts talking about uploading a file using NSURLRequest and NSURLConnection. Some of the ones I've seen are: http://forums.macrumors.com/showthread.php?t=427513 http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone http://www.cocoadev.com/index.pl?HTTPFileUploadS...

How do I properly handle rotation of a UIScrollView containing UIImageViews?

I'm developing an image viewer, much like the Photos App. It's a UIScrollView with paging enabled with images loaded from the internet, so I've adapted portions of the LazyTableImages sample. The Scroll View and each ImageView inside of it have all of their autoresize mask flags set. When I first observed how resizes were happening du...

Core Data table record count

I have an entity called Person and it has a relationship called participatingGames, to another entity called GameParticipant. I (apparently) can retrieve the number of matches in the GameParticipant entity using this simple code in the Person object I created from the entity in the model: [self.participatingGames count]; However, I'd ...

How to set background color of tableView

Hi Folks, I have tried all the way but could not succeed to set backgroundColor of TableView. setting tableView.backgroundColor and/or cell.backgroundColor to clearColor didn't work when the parent view controller was UIViewContoller. My nib file structure is FileOwner View UITableView (Note: i set the TableView to groupedTable secti...

iphone SDK: UIView dealloc not called. Why?

I have a custom UIView called TiledImage which has a single property named tiledImage and a custom drawRect method. I add this view to my ViewController, but when the ViewController is deallocated the dealloc for this view is never being called, even though I am releasing the view and setting it to nil. What could be causing this? I don'...

NSXMLParser not parsing attributes. No NSXMLParser Error.

I am trying to parse the XML located at this URL: http://www.iglooseat.com/gis_iphone_xml.php?zip=06488 1) This method gets invoked when the user presses a button on the Iphone to retrieve the xml data (IBAction)getLocations:(id)sender { ... NSString *urlString= [[NSString alloc] initWithFormat:@"http://www.iglooseat.com/gis...

How do I send text to a UITextView?

I'm new to iphone development. I'm a VB programmer who is trying to convert a VB application to an ipad app. I need some help with sending text to a UITextView. I want to first have a UIPickerView and then once the user hits a UIButton, a UITextView appears and the text is then generated by my source code code, line by line. The code...

Sizing of a UITableViewCell

I have created a UITableViewCell derived class which resizes itself to display at an indentation level. I have tried setting indentationLevel and indentationWidth using the following in the ViewControllers cellForRowAtIndexPath: cell.indentationLevel = [[item objectForKey:@"indent"] intValue]; cell.indentationWidth = CELL_INDENT_SIZE; ...

Number of rows returned in a sqlite statement

Is there any easy way to get the number of rows returned by a sqlite statement? I don't want to have to go through the process of doing a COUNT() first. Thanks. ...

Store selector as value in an NSDictionary

Is there a way to store a selector in an NSDictionary, without storing it as an NSString? ...

Core Data Many-to-Many Relationship NSPredicate

Hi all, I have a data model with a many-to-many relationship like EntityA <-->> EntityB <<--> EntityC. I used to query EntityA with different search criteria and I use NSCompoundPredicate with an array of NSPredicates. On one of the predicate I wanted to query EntityA using EntityC. I tried to use the following SUBQUERY but it did not w...