iphone

How to track marketing efforts for iPhone apps on the App Store?

Is there a way to track marketing campaigns in the app store to find out what works and what doesn't, so you can determine which marketing techniques are actually working? ...

Has anyone found documentation on UITextField's zooming bubble / magnifying glass?

I need to find more information about this feature, but I haven't found anything in either the Docs or on-line. I'm trying to do 1 of the following 2 things: 1) Suppress the Magnifying glass and/or the square Editor bubble view which appears when the user will "press and hold" the text field. 2) Perhaps create a subclass of UITextFiel...

set app badge number by rows in table view with core data

Hi all, I'm developing an app that uses Core Data for save and retrieve data. Now I would like to add a badge number on app's icon in the home screen but I have some problems... I tried this code: NSInteger section = [self.tableView numberOfSections]; id <NSFetchedResultsSectionInfo> sectionInfo = [[self.fetchedResultsController se...

Core Data, how can you avoid inserting dupicate recrods?

I have a web service call that returns XML which I convert into domain objects, I then want to insert these domain objects into my Core Data store. However, I really want to make sure that I dont insert duplicates (the objects have a date stamp which makes them unique which I would hope to use for the uniqueness check). I really dont w...

can not get setNeedsDisplay to work within a loop for UIImageView

A frequently answered question, I'm afraid but I am pretty much in the dark on this. Within my view controller I have the following method to switch back and forward between two images a total of 5 times - (IBAction)cycle{ BOOL select1; select1=YES; UIImage *image1 = [UIImage imageNamed:@"image1.png"]; UIImage *image2 = [UIImage ...

Loading NSMutableDictionary from URL

Hi, I'm currently doing this: NSMutableDictionary *dict = [[NSDictionary alloc] initWithContentsOfURL: [NSURL URLWithString:@"http://mysite/mypage.php"]]; Which is great, apart from when the data being returned is quite large, and it appears to time out. How could I get around this? Thanks in advance. ...

Uploading IPhone App For Review

Hi All, Im just at the step of using the application loader to upload my iphone app to the app store. My question is (and im sure its a dumb question, and im sorry for that) when i get to the step of the application loader where it is asking to choose a file to upload, WHAT FILE DO I NEED TO SELECT? Thanks in advance ...

IPhone Development - Failed to use SQLite

Hi all, I'm trying to do a simply query in a database that I built, but is not working. The Path of the database looks very strange, I don't know if it is correct. I added the database in the "Resource" folder. Code: -(void)getInitialDataToDisplay:(NSString *)dbPath { int result; SQLiteTestAppDelegate *appDelegate = (SQLit...

Is it ok to autorelease UIViewControllers?

I have some view controllers: StockTwitsTVViewController* stvViewController = [[[StockTwitsTVViewController alloc] initWithNibName:@"StockTwitsTVViewController" bundle:nil]autorelease]; UINavigationController *stvNavController = [[UINavigationController alloc] initWithRootViewController:stvViewController]; stvNavController.tabBa...

Pull data from a website into my iphone app

I basically want to make part of my iphone app display schedule within the app, my thought is to make an xml template and then edit the file on the webserver as the schedule changes, then as a user views the file the schedule will load. My question would be what the best way would be to implement this? Just call the URL? I would like to ...

Problem with UIImagePickerController

I'm having a problem with the UIImagePickerController being presented with presentModalViewController. As soon as the view displays (be it camera or photo album), the app crashes. The whole UI is created in code, no interface builder. This has only stopped working since I've been updating the code to run on ios4. Using leaks, I can't fi...

Portrait Orientation is losing touch input.

I'm making a universal apps with auto rotation, and I'm only using landscape left and right. When I rotate the iPhone to the portrait down position, I can see what looks like a window underneath the app rotating and I no longer get touch events. In all the shouldAutoRotate functions I'm making sure only return true for landscape, and t...

How to inject JQuery into existing page within a UIWebView?

I am trying to inject JQuery into a UIWebView of a page that I can't control, say Google, for example. When a UITextField gets focus, I am executing the following lines of code: NSString* scriptInject = @"var headElement = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.setAttribute(...

How do you make an iOS 4.0 app compatible with iPhone OS 3.1.3?

So, I may have made a mistake in updating my application to iOS 4.0 by wiping my Xcode installation and only installing the 4.0 SDK (I can't even find SDK 3.1.3 in my backups, doh!). I have an app now that has been built with a base SDK of 4.0 and it says in iTunes it requires 4.0 but the only thing I added was the methods -applicationDi...

Testing application on iPad device

Hi all, I need to get the statistical details( memory details, object allocations etc.) , when my app is running on the actual device. Not in the simulator. Is there a way to attach the instruments or some other tool to device? ( When i build and debug on the device from xcode). Is it true that memory details that shown in the simulato...

How to calculate UILabel width based on text length?

I want to display an image next to a UILabel, however UILabel has variable text length, so I don't know where to place the image. How can I accomplish this? ...

Programming for IPhone - Do you really need to learn Objective-c?

Looking on-line I saw that I can write most of the application in Ansi-C code or as a website and present it in a webView control. Then besides some general knowledge about iOS and the API... Do I really need to learn Objective C? ...

Black corners around UITableViewCells

I am trying to display a UITableView in front of an image, and here's the steps I'm following: Inside the view, add a UIImageView with the image set to the appropriate file in the project Add a UITableView inside the parent view (the same parent as the image view) Set the backgroundColor for the table view to clear Wire up a datasou...

access a variable from another class iphone development

Is there a way to access the value of a variable of another class in the iphone whithout using the delegate? ...

IBAction crashes TabBarController App

I have a Window-based TabBarController app and I'm trying to present a ModalView from one of the tabs (FirstViewController). The app builds just fine and the tabs work, but upon clicking the "Open Modal View" button, it crashes and gives me: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewContro...