iphone

Add Core Data Index to certain Attributes via migration

For performance reasons, i want to set the Indexed Attribute to some of my entities. I created a new core data model version to perform the changes. Core Data detects the changes and migrates my model to the new version, however, NO INDEXES ARE GENERATED. If I recreate the database from scratch, the indexes are there. I checked with SQ...

How Can you Localize a Label in iPhone SDK?

I know you can localize a NSString or even an image (which is pretty cool), but can you localize a label that is text in the iPhone SDK? ...

When should I use the addSubview method of a view controller?

I'm programming for the iPhone and I'm wondering when to use the addSubview method of a view and when to present to use the modal view controller (presentModalViewController). What complicates this even more is if you are using a navigation controller (I'm not) and you can use the pushViewController method? When would you use each and w...

Remove first byte from NSMutableData

NSMutableData *requestData = (NSMutableData*)[request responseData]; returns "[{JSON_STRING}]" so I want to strip out the "[" / "]" without converting to NSString and then back to NSData. The easiest way to do this is to strip out the first and last byte. [requestData setLength:[requestData length]-1]; removes the last byte. How t...

iPhone - Send VPN traffic for a specific URL

I am building a iPhone web based app for our execs to view sales data. The app goes over SSL with a typical login page that sets a cookie for the day. Since the info is sensitive and we have a VPN at work I was hoping as a double precaution I could send all communications with this app over our VPN. Is there a way I can route traffic ...

Deselect UIButton on touch down outside

I have a UIButton that selects itself on UIControlEventTouchUpInside. It deselects itself on UIControlEventTouchUpOutside. I also want it to deselect itself when there is a touch down outside of the button. Is there a good way to do this without subclassing UIWindow and overriding -hitTest:withEvent:? EDIT: I just found this question...

Initial value of a Core Data Entities properties?

Hi I have several core data entities that contains a bunch of empty NSString properties. I parse some XML and set the properties I can get a hold of and would like to set the "empty" ones to "n/a" as in "not available". So if my XML does not contain the values it sort of tidy up the Entity by giving it a "n/a" string I can test for lat...

Online MySQL database in Objective-C

I'm writing a game for iPhone, and I want an online leaderboard using mySQL, which i'm very familiar with. How do I implement this in my app? I would assume there's a framework/library i need to obtain? ...

MPMoviePlayerController release problem

here is code - (void)applicationDidFinishLaunching:(UIApplication *)application { NSBundle *bundle = [NSBundle mainBundle]; NSString *moviePath = [bundle pathForResource:@"sample_mpeg4" ofType:@"mp4"]; NSURL *movieURL = [[NSURL fileURLWithPath:moviePath] retain]; MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController al...

dynamic buttons of UIActionSheet {iPhone SDK}

hi . for my app iam using Facbook connect to share something from my app to facebook now for Facebook connect . i use UIACtion Sheet . i want change the title of Log in and log out buttons . it means if user log in the facebook my button title change into @"Log Out" and when user is logout title change to @"Log in " - (void)session:(FB...

'Tried to pop to a view controller that doesn't exist.'

I am getting this error when I call my method dismissView. Here is the method stub: -(IBAction)dismissView { RootViewController *rootController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil]; [self.navigationController popToViewController:rootController animated:YES]; } That should work, and I'...

Checking singleton property with nil value causes error

When I check a singleton property that is nil, it kills my app. But when I check for nil on a class instance property, everything works fine. This works fine: self.MyProperty == nil but this will kill the app with “EXC_BAD_ACCESS” [MySingleton sharedManager].SomeProperty != nil What is the difference with the singleton that I can...

MPVolumeView change volume on touchUp...

Hello, I am using an MPVolumeView to change sound level in a view, I use this in several apps with success but in my latest app volume is changed only on touch UP and not on move like before, and I can't find why. Do you have an idea ? Thanks Thierry ...

Secure connection between iPhone application and web server?

Hi, I am about to start to developing an iPhone application that should login and communicate information securely between the app and a web server. I haven't done much development in this area before, so I have done some research and would be very thankful for any input on how to handle this in the best/easiest way. Currently, the peo...

Can't upload application binary to the App Store

We've finally gotten to the point of submitting our first iPhone app to the app store (or trying to), but I can't seem to get iTunes Connect to accept the upload. I've attempted through both the web site ("The binary you uploaded was invalid. The signature was invalid, or it was not signed with an Apple submission certificate.") and the...

Is there a way to use the UIImagePickerController with your own images?

I was wondering if there is a way to make a UIImagePickerController use a collection of images that you specify (in other words I make 10 photos of doorbells and make the UIImagePickerController show me those photos and let the user select one). In other words, a custom photo gallery is where I'm heading. Is there a way that I can do th...

Using different delegates for NSXmlParser

I am trying to figure out the best way to design something. I am writing an iPhone App and for the most part I am using async calls to a web service. This means that I cam setting up a URLConnection, calling start and letting it call me back when the data is available or an exception occurs. This works well and I think is the correct way...

How to step frames in a movie recorded by iPhone

Is there a way to have my iPhone program step frame by frame through a movie recorded by the iPhone? What I want to do is have the user record a quicktime movie, then be able to step through the movie frame by frame. Alternately, I suppose if there was a way to extract every single frame from the movie to a jpg, then I could easily step...

When evaluating an iPhone dev shop, best questions to ask?

We are currently in the process of evaluating a couple of iPhone development shops and we're putting together a list of questions/topics that we'll be asking them about when we meet. To make sure that we have the most relevant areas covered, what would you ask when evaluating an iPhone developer or development shop? Our main areas are:...

Publish UIWebview via Facebook connect

I am using fbConnect in my Cocoa Touch application. I have UIWebview on my view, and I want to publish the UIWebview's context (its only text) to FaceBook. How should I change the FBStream to publish my UIWebview? FBStreamDialog* dialog2 = [[[FBStreamDialog alloc] init] autorelease]; dialog2.delegate = self; d...