iphone

Download Content Dynamically to App through In-App

Hi Everyone, I am trying to download content dynamically to my App after an In-App purchase. This content needs to be decompressed. What is the best way to do this and to uncompress and access the data? I always want to give the user the ability to pause the download. How do you do that programmatically - the pause and resume? Than...

Where can I download iPhone SDK 3.1?

I'm trying to setup Titanium Developer which requires the iphone sdk 3.1+. I can't install 3.2 because I'm running OS X 10.5.6. Where can I download sdk 3.1? ...

Can I have cells with different hight in an UITableView?

I need to present some information in a table view where some information is pretty flat, and other is pretty big. i.e. one information is just a line of text really, while the other is three lines of text. From what I know, UITableView asks for the hight of all cells. So is there any way to have cells with distinct heights? ...

Using Quartz to draw every second via NSTimer (iPhone)

Hi, I'm relatively new to Objective-C + Quartz and am running into what is probably a very simple issue. I have a custom UIView sub class which I am using to draw simple rectangles via Quartz. However I am trying to hook up an NSTimer so that it draws a new object every second, the below code will draw the first rectangle but will never...

Act on click of a button on the Nav Bar for moreNavigationController -- Can't pushviewcontroller

Okay, here is my issue: My app has a display of categories in the tab bar at the bottom of the iPhoneOS screen. This only allows 5 categories before it presents the MORE button. I have over 25 (please do not answer this by saying: "Rethink your application...etc" -- that was rudely said before. They are food, drink, etc categories an...

Memory efficient way of inserting an array of objects with Core Data

I'm working on a piece of code for an iPhone application that fetches a bunch of data from a server and builds objects from it on the client. It ends up creating roughly 40,000 objects. They aren't displayed to the user, I just need to create instances of NSManagedObject and store them to persistent storage. Am I wrong in thinking that...

convert epoch time to NSDate in cocoa/iPhone

I have the value of the epoch time like say 123456789, now i want to convert this into NSDate in cocoa framework. can anyone show me? thanks ...

PDF hyperlinks on iPhone/iPad

Hi, I've been looking around Google and SO and haven't quite found an answer to my question, or at least a more recent answer. I have a PDF with hyperlinks/hotspots in it and would like to display the PDF file in my own iPhone/iPad app. When the user clicks on a hyperlink/hotspot I would like the user to be taken to the appropriate loca...

Interface Builder Does Not Recognize Toolbar Buttons

I created 4 UIButton's that are Custom and Plain in IB. I added a background image to them and then placed them onto my UIToolbar. I created IBActions and hooked up all of the buttons I did not create @property for the buttons, but 3/4 of them appear on my toolbar when I run the app in my the simulator. There is a blank space for the...

iPhone/Android: How to Send Keystrokes To Laptop Over Wifi?

How can I best implement a system for send keystrokes/commands via an iPhone and/or Droid to a desktop or laptop computer via WiFi or bluetooth? There are apps for VLC, Keynote and other applications that do this, so I know it's possible but don't know what technology base to use. The implementation is probably different on Windows and...

How to pushviewcontroller to a viewcontroller stored in a tabbaritem?

First of all I know this is a long question. REST ASSURED I have tried to figure it out on my own (see: StackOverflow #2609318). This is driving me BATTY! After trying and failing to implement my own EDIT feature in the standard moreNavigationController, I have decided to re-implement my own MORE feature. I did the following: Add a ...

How to search through a NSMutableArray

I have a NSMutableArray that I need to search for a string and return the key in the array where the string was found. So for example if I'm searching "ipod" and it's the 4th in the array, it would return 3 or whatever position the string is in. What's the best way to do this? ...

Custom size app screen on iPad

I am trying to create a mid-size screen for my app on iPad. In didFinishLaunchingWithOptions(), I do this: CGRect winRect = CGRectMake(100,100,500,500); navController.view.frame = winRect; the screen comes up fine and I can click around and do stuff until the orientation changes. It takes the screen to original full size - how can I ...

How do I right align controls in a TTTableControlItem?

I'm using Three20's TTTableViewController to display a sectioned table view. The datasource is a TTSectionedDataSource containing TTTableControlItems. The controls are all left aligned. I'd like to make them right aligned. Is there any way to do this without creating a custom cell? ...

Rechability of Local LAN Ip on iPhone/iPad?

Hi, i want to check if an Webserver on on local lan ip is reachable. I checked Apple's Rechability Sample, but this sample says all local lan ip's are reachable. Any Ideas how to check this? Thank's ...

What is the screensize of a UIModalPresentationFullScreen

I have a UIModalPresentationFullScreen but my UI elements are not showing up properly. I want to define the screensize in IB, but I'm not sure what the size should be? ...

Is it possible to turn a View-Based App into a navigation-Based App?

I am close to finishing my first application (a UITableView style one) on the iphone but have realised it will look much better, and stand a far better chance of getting through the approval process, if it is presented as a navigation-based app rather than a view-based one - in hindsight my initial choice is not really suitable... Is it...

How do you compile a resource into the binary?

How do you compile a resource into the binary in XCode? That way is doesn't show up inside the application bundle as a file and it's not subject to manipulation by a user (whether good-intentioned or bad). Is this even possible? I'm particularly interested about this in terms of iPhone apps. Any help is appreciated! ...

Showing image in place of flash to iphones and ipads

Edited // I want to detect flash support (not user string agent) on load and if the visitor is viewing on a device that does not support flash (changed from iPhone or iPad) I want to display this code: <?php get_header(); ?> <div class="flash"> <img src="/wp-content/themes/iq-iphone/main-page-image.png"/> </div> If it's a regular vi...

hiding network activity indicator

- (void)viewWillAppear:(BOOL)animated { app = [UIApplication sharedApplication]; app.networkActivityIndicatorVisible = YES; NSURL *url = [NSURL URLWithString:@"http://www.google.com"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView loadRequest:request]; } -(void)webViewDidFinishLoad { app.networkA...