iphone-sdk-3.0

mtom using axis and iphone

hi, I am new to webservice stuff. I have a axis service which sends a response which has a MTOM attachment of file. without using utilities like wsdl2objc is that possible to extract the file from the response ? It is a zip file. if yes please let me know how to do it. ...

sending data to previous view in iphone

Hi, What are the possible ways to send data to previous view in iphone. Without using Appdelegate. Because there are chances for my view class to be instantiated again. ...

iPhone dev: UIWebview shifts vertical location when rotating device

I have a UIWebView in which the user can browse a bunch of locally stored and interlinked HTML files. All works nice and well, except in this particular case: User navigates to a page with a fragment pointing to chapter 3, causing (correctly) the browser to render the HTML from the fragment anchor and onward. User scrolls a bit further...

NSManagedObject property managedObjectContext has no value

In my code, I am trying to access [NSManagedObject managedObjectContext] but surprisingly it returns nil. The managed object is loaded because I already successfully accessed it's values using [NSManagedObject valueForKey:]. Is there any case where managedObjectContext returns nil? ...

Determine from code if Core Data framework is present.

I have a class that I need to use in both Core Data and non Core Data applications. In non Core Data applications I need the class to omit certain code at compile time. Are there any compiler directives that detect if Core Data framework is added to the Xcode project, something like #ifdef __COREDATA? ...

Possible with a backgroundapp that compares current pos with predfined pos?

Just a hypothetical question. I am thinking of making an app that read the current GPS position and compares it to several predfined positions. That is not hard but what I need to do is have it run in the background and if the device gets within a certain range of the predfined position it should make the user aware of that prefinded po...

Should I use a core data/database or internet connection to get updated information?

I have an application that required to be updated continuously. Is it better to update it with the core data model and check if there is an update or not, or always get the information from the Internet an load the information from it ?! ...

Xcode warning: "May not respond to"

I have a few methods for initialization of different stuff in my class implementation. However, when I invoke these methods by using [self 'methodName'], the Xcode compiler gives me a warning that I could not get rid of. 'className' may not respond to 'methodName' For example, warning: 'NextJackpotViewController' may not respond to -...

NSDate MPMediaItemPropertyReleaseDate always returns 1801

I'm trying to extract the year from MPMediaItemPropertyReleaseDate in an MP3 file using iOS SDK 4.0 but it seems to always return Jan 1 1801 for the date. Does anyone know how to properly extract that from the returned NSDate? Here's what I'm doing: NSString *locale = [[NSLocale currentLocale] localeIdentifier]; NSLog([[mediaItem value...

How to get ISOCurrencyCode from a ISOCountryCode in iphone sdk?

I have the ISOCountryCode avaliable and now i want to derive the currencyCode of this country from the ISOCountryCode. How can i achieve that? NSString *countryCode = < get from someother view>; NSString *currencyCode = ?; I receive this country code from some other view on runtime? ...

iAds application crashing on OS 3.0 - 3.2

how to set iAds so the application does not crash on older OS (3.0 - 3.2) ...

UIDatePicker display seconds

Hi, Is there any chance to display seconds in uidatepicker? I don't really see reference for this. ...

Navigation Controller and Table Views

I am creating an application which I want to have a view controller with buttons as the first view controller with no navigation bar, and then when the user selects a button a table view controller appears managed by a navigation controller. At the moment I am setting up the navigation controller in the app delegate and setting the top ...

button on subview does not work..

hi , I am developing one demo app. In first view 'Login' button is linked to 'signInAction()' which is as follows. My superview controller is 'LoginController' and subview controller is 'TweetyViewController'.. - (IBAction) signInAction:(id)sender { TweetyViewController *tweetyController = [[TweetyViewController alloc] initWithN...

resignFirstResponder only occurs after processing is complete

I want the keyboard to go away as soon as I hit "submit" in my iphone app, and not wait until the function completes. The function takes a long time because I'm doing a synchronous HTTP request. How come the view doesn't update until the whole function completes? I'm working in the simulator in xcode. -(IBAction)submit:(id)sender{ ...

How can I implement NORMDIST function in objective c?

I am trying to implement a NORMDIST feature in my iphone application, but I am not sure what library to import, or how I would go about doing this. If someone can point me in a direction, that would be awesome. ...

Load MKMapView with current location

For the life of me I can't get something that seems like it should be simple to work. I have a navigation controller and am trying to push an MKMapView onto the stack that loads the user's current location. The problem is that the user's location seems to be only available after the MKMapView is pushed onto the navigation controller, thu...

Assigning same action to multiple buttons at once

Hello, can I assign same action to multiple buttons in the Interface Builder once they are all selected by one connection? ...

how to design this scenario?

hi, Am developing one calculator type application. In portrait mode first 60% part of the screen contains 2 textboxes,3 sliders and 1 button. second 40% part of the screen contains 2 textboxes and 1 button. My problem is, when i click on center 'Calculate' button,the above part that is 2 textboxes & 3 slider disappears and result of...

How to copy log file from iPhone to desktop PC

Our app is going to move for testing. We need to debug for finding defects. Is there a way to have a log file on iphone, put all the methods calls on to it and copy it back to desktop pc when required? I understood from other threads that logging is possible. The only pending part is copying the file from iphone to desktop PC. Is it pos...