iphone

iPhone: How to download a full website?

Hi, what approach do you recommend me for downloading a website (one HTML site with all included images) to the iPhone? The question is how to crawl all those tiny bits (Javascripts, images, CSS) and save them locally. It's not about the concrete implementation (I know how to use NSURLRequest and stuff. I'm looking for a crawl/spider ...

iPhone location method

I have been wondering how the iPhone determines location based on wifi, because I want to integrate this functionality into a java app of mine. When I run a location check on my ip, it throws me all the way into some other neighborhood... But when I use my iPhone's location feature, it points right too me. (and GPS is turned off) How d...

Scroll view in UITableView header

I have a scroll view embedded into the tableHeaderView of a UITableView. I have a few images that the user can scroll through left/right. Pinch/zoom is not enabled. Initially, I could scroll through the images, but only if I was extremely precise with my horizontal movement. Any deviation would be intercepted by the UITableView as a ver...

Combine UIPageControl,UIScrollView (Horizontal) with UINavigationController

I finished building a basic iPhone app and now wants to upgrade the UI. I want to add something very similar to the iphone main screen, the only difference is that I need the UINavigationController to always be visible while I scroll through the views. I tried to play with the PageControl example by apple but couldn't get it working th...

Objective C how to add textfield into navigation bar

Hi, I'm trying to add a textfield into a navigation bar, but it doesn't show up in the simulator. I do it as follows inside viewdidload: UITextView *textField = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 170, 44)]; self.navigationItem.titleView = textField; Any ideas? Thanks! ...

Facebook graph api with native iPhone application

I want to use the Facebook Graph API in a NATIVE iPhone Application. Has anybody been able to find a way to post images/message on a user's feed? I have tried all possible ways to post a ‘picture’ (not a URL but a UIImage) on the feed and have been working on this for 2 weeks now. If you go to facebook.com you can upload a picture from...

iphone binary failing to compress

When I try to compress my binary (to upload for app submission), I get a ridiculously small zip file (a 10 meg file turns into 300k). I've done this a dozen times and never had a problem and am uncertain what could be causing this. I tried restarting xcode and doing a clean build. Has anyone seen this happen before? ...

How to create iOS image buttons that scale well across multiple resolutions?

I've run into the issue of using a UIBarButtonItem with a custom color. Everything out on the 'net seems to indicate that the only way around this lack of official API support revolves around the use of images. This is all fine and dandy when developing for pre-iOS 4 devices, except when using the new iPhone 4. Creating an image for i...

How to have images that do not resize when zooming in a UIScrollView?

I want to have images inside of a UIScrollView (or at least appear to be inside a UIScrollView) that don't change their size when zooming in and out. I do want the images to maintain their positions when zooming or scrolling. The use case is that I have a customized map view with pushpins. I want the pushpins to stay in place when zoo...

iPhone screenshot different colour when displayed

I've taken a screenshot of my iPhone app running and I'd like to use that image as a png to be drawn by the app instead of generated graphics. When I take the screenshot, it looks fine. However, when that is saved as a PNG file, added to the Xcode project and then displayed back on the screen of the phone (or simulator) the colours are ...

UITableView with UIDatePicker ?

Hi, please I need some advice about design approaches in iPhone programming. I want to display a table view (with three cells that will never change) and a UIDatePicker. I don't use Interface Builder. I created a UIViewController subclass and tried to put all together in its viewDidLoad method: UITableView *myView = [[UITableView alloc...

is there a way to launch the iPhone App Store app and select the "updates" tab?

Hi, i currently notify users that we have an update to our iphone app using an UIAlertView and when they click ok, i open the phobos.apple.com URL to the app using [[UIApplication sharedApplication] openURL:] That works fine and dandy & brings the user to the app's page in the App Store, but is there a way to just open the App Store a...

Facebook graph api with 'NATIVE' (no PHP) iPhone application

I want to use the Facebook Graph API in a NATIVE iPhone Application. I need help to POST images/message on facebook. I know of these two resources on the net but they do not provide any help with posting on the user's feed. http://www.capturetheconversation.com/technology/iphone-facebook-oauth2-graph-api http://blog.corywiles.com/face...

Can I store AVAudioPlayer references in an NSMutableArray and play them at will?

I have a library of 16 short sound clips I need to be able to play in quick succession. I realized that creating and preparing AVAudioPlayer objects in real time was too much to ask of the iPhone. So instead, during my app's initialization, I am pre-creating a series of AVAudioPlayers so that each one is basically pre-loaded with one...

A UIImageView or UIImage Subclass With Other Methods

Gentleones, I would like (at another's suggestion) to extend the functionality of a UIImageView or UIImage so that I can display a particular image in a view and ask it about itself. Since it's a graph, I'd like to be able to ask this particular UIImageView what a particular Y value is returned given a particular X value. (Ignore creat...

iphone 'No declaration of property 'doSomethingButton' found in the interface' error

I am really confused - I am implementing a change to a button in several views and it works in all but 1 of them and I can't figure out what is different. I have it declared in the .h file : UIButton *doSomethingButton; } @property (nonatomic, retain) IBOutlet UIButton *doSomethingButton; But then in the .m file I get the error ...

How do I compile my app for submission to the app store?

Hi all, I have an iPhone app that I've developed and I'm ready to submit it to the app store. I've read the iTunes Connect Developer Guide, but there's nowhere that specifies exactly how to go from an app in XCode to a binary uploaded to the app store. Is anyone who has done this able to guide me here? Thanks! Bjorn ...

NSuserdefaults not loading in a tab bar controller, works on uiview

I have a problem getting the NSUserDefaults to pull out on a tab/nav/tableview controller page, I've put the same code on a loginpage and the app will pull the objects for keys perfectly. I had this working when I had programmatically created the tabs and navs but now it's not working. The loginViewController is not in the tab stack, is ...

Iphone Push php or certificate error ?

Hi all ! I have made an app using remote notifications, i've used the Apns certificate and his private key to create my cert-production.pem removing the passphrase. An another guy of my team works on php side. We have managed to use it during developpement, get the token and send a push using a payload. But after submission t the a...

Can iphone web apps, be put on appstore for sale, just like native apps?

Can iphone web apps be sold on appstore, without requiring user to do manual bookmark, etc? ...