iphone

Managing HTTP Cookies on iPhone

Hi, I want to port a python app that uses mechanize for the iPhone. This app needs to login to a webpage and using the site cookie to go to other pages on that site to get some data. With my python app I was using mechanize for automatic cookie management. Is there something similar for Objective C that is portable to the iPhone? Than...

Using FirstResponder with Text Validation Question for iPhone SDK

I am trying to validate my text fields, so that if there is an issue the user input it will catch it and show an Alert (got that part) and not go to the next field (can't get that part). Any thoughts on what I'm doing wrong with this? - (BOOL)textFieldShouldReturn:(UITextField *)textField { if (textField == txtUserName) { ...

Multiview Application with splash screen

Alright, so I'm trying to add a slash screen to my app to facilitate navigation. However, I'm quite lost as to where to begin. I'll have several different views that I want to access from the splash screen, and I want to hit a button to get to each of the views. So basically, think of the Facebook App splash screen. That's what I wan...

CFFTPStream not sending all the data

I am using CFFTPStream to send files to a server. I have found that when I do not use persistent sockets not all the data is being sent. I am using similar code to the SimpleFTPSample. In the code that closes the socket I have put a sleep in and this has stopped the bad behavior. To me this indicates that when the stream is closed the da...

How to remove a file in iPhone SDK that I can't easily see

I think I removed my icon.png the wrong way, and it's still in the project somewhere. I try to upload a new icon.png and it won't let me giving me an error that it can't do it. Then I upload 'con.png' and try to rename it to 'icon.png' and it won't let me do that. So I'm thinking I must have deleted the original icon.png the wrong way (s...

How can I modify this code, which rotates a CGImage, not to crop the image on rotate?

This function rotates a CGImage by an arbitrary number of degrees, but it clips the image a bit. How can I avoid the clipping? Making the rectangle a bit larger seems to distort the image being rotated. + (CGImageRef)CGImageRotatedByAngle:(CGImageRef)imgRef angle:(CGFloat)angle { float angleInRadians = angle * (M_PI / 180); float...

disabling a javascript script when loaded on a smart phone

I am using the following HTML fragment to load a different stylesheet for smartphones: media="only screen and (min-device-width: 4801x)" media="only screen and (max-device-width: 480px)" I would like to disable a certain javascript script for smartphone users as well. Is that possible? I don't think i can do: <script media="only scre...

UITableView Scrolling Crash

I am currently developing an iPhone application which loads data from an RSS feed and displays it in a Tab Bar Application in 2 UITableViews, which we we call TableViewA and TableViewB. In the AppDelegate we have the following method: - (void)getDataWithContext:(NSManagedObjectContext *)context { NSAutoreleasePool *pool = [[NSAutore...

Pattern for XML Parsing in iPhone..

I have a web service which returns certain "models" of which are all defined by a class in objective-c. Calls to RESTful methods will return either a singular model XML or a list of model XML elements. <widget> <a>foo</a> </widget> or <widgets> <widget> <a>foo</a> </widget> .... <widget> <a>foo</a> </widget> </widget...

Test NSURLConnection failure

How can you test a failure of NSURLConnection? Also, how do you tell if it failed due to airplane mode or WiFi being turned off? In my tests, while the alert pops up telling the user they need to turn on WiFi, if they ignore it my App just sits there and spins waiting for a response. ...

cocoa iphone fetchedResultsController sorting

Hey there, I'm working on an app that relies on a set of data that can be sorted in a variety of ways. I've got core-data setup. I have a fetch request that brings in all of the records. I've got a sort button on the left side of the nav controller. It brings up a modal view with table that has my sort options. when you change the ...

iPhone: Navigation from button

Hey guys I have a RootViewController that has his nib file RootView.nib. Anyways there's a button that when you press is it sends you to my SecondViewController(SecondViewController also has his SecondViewController.nib file). Now the SecondViewController has an IBOutlet UINavigationController and has also the delegate from NavigationCo...

Can't build app for iPhone simulator

I'm unable to build a very simple program when building for the iPhone simulator. It compiles fine for the device however! An example code that the compiler doesn't like: @protocol Invokable - (id) invoke: (id)arg with:(id)data; @end @interface Worker : NSThread { NSAutoreleasePool* memoryPool; } - (void) invoke:(id)target select...

Native iPhone app in HTML/Javascript ?

I would like to build an app that heavily relies on Google Maps. Is it possible to write a native iPhone application in HTML/Javascript ? If so, will it be accessible from the app store ? Otherwise, how could I include Google Maps in a native app ? ...

Any good guide about iPhone Core Data?

I'm looking for some guide, I already looked at it a bit on cocoadev and in a book but I didn't find any good guide. I mean those guides were talking about multiple concepts at once so now I only want a simple straightforward guide about how to use it. Anyone knows any good guide? Thanks! ...

custom tablecell valueForSelectedRow problem

I have created a custom uitablecell which contains several values. When the user selects a row, I want to be able to select that row's content for one of the values in the custom uitablecell. If the cell looks like this: ba_type varchar2(20) P source varchar2(20) P row_qual varhcar2(20) If the user has selected the 'sour...

What is the instruction to release updated iPhone application to App Store?

My application just available on the App Store but I found an error, so I fixed it. But from this point I don't see any sort of document about "how to submit updated application to App Store?". Could you help me with any clear instruction? Which I have to change to make the new version replace the old version and available for user to ...

iPhone rssi data

Im working on a proof of concept app, and need to measure rssi data. Looking for suggestions for any sort of api / framework that I could use. I tried playing around with the stumbler code, but haven't had much luck. ...

Stuff NSMutableDicitonary into NSMutableArray

I am newbie to Iphone Application development. Please help me. I am sorry if I am wrong. I have following declarations: //.h file: NSMutableArray *dataArray; NSMutableDictionary *item; //.m file - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedN...

Voice Synthesis for the iPhone

I know that Apple hasn't given access to voice recognition, but do we have access to voice synthesis. If they haven't given us an API, would it be possible to hack the accessibility APIs to work even for people with VoiceOver turned off? ...