iphone

CORE DATA objectId changes constantly

Hello, I have some data that I export into an XML file and put in a remote FTP Server. I have to identified each object with a unique attribute, it doesn't matter wich is, but must be persistent always => it can never change. I don't want to create a unique attribute, sequence, serial, etc. I'm using the objectID but every time I use...

App not installed...because its resources have been modified

One user cannot install my app because they continue to receive the error: The application “myapp” was not installed on the iPhone “myPhone” because its resources have been modified I've read the error occurs because of adding files after the app is built. I have not added any files. Last week, the user could install the ad hoc with...

iPhone: Should I move data from the application bundle to the documents directory?

I have noticed that in the CoreDataBooks example a default database is copied to the documents directory if the file doesn't already exist there: if (![fileManager fileExistsAtPath:storePath]) { NSString *defaultStorePath = [[NSBundle mainBundle] pathForResource:@"CoreDataBooks" ofType:@"sqlite"]; if (defaultStorePath) { ...

UINavigationController and memory management

- (void)launchSearch { EventsSearchViewController *searchController = [[EventsSearchViewController alloc] initWithNibName:@"EventsSearchView" bundle:nil]; [self.navigationController pushViewController:searchController animated:YES]; //[searchController release]; } Notice the [searchController release] is commented out. I've unders...

[iPhone] How to order an array

Hi all, I got an array in my app and I need to order by one of its key. Basically what the app does is taking latitude and longitude somewhere, calculate the distance from my actual position and create an array containing a key called "distance". I'm using myArray sortUsingDescriptors: [NSArray arrayWithObject:[[[NSSortDescriptor...

Adhoc Distribution iPhone Application !

Hi, When i click on the grey large button on xcode ( which we use to switch between simulator and device options ) . It doesnt have the distribution option. It only has debug and release options. Can anybody tell me wats wrong ? ...

add overlay view over all other views

Hi people, how do you add an overlay view that goes over everything. eg over a tab bar controller, and a navigation controller? thanks ...

iPhone: Setup static content of UITableView

This guide from apple https://developer.apple.com/iphone/prerelease/library/documentation/UserExperience/Conceptual/TableView_iPhone/TableViewCells/TableViewCells.html (you need login) explains how to use "The Technique for Static Row Content" to use Interface Builder to setup the cells in a tableview. I have some cells with different ...

Post photos Facebook fan pages and/or album using FBConnect on iPhone

I've been successful in doing a post to a fan page using fbconnect on the iPhone. I also can upload a photo to a friends wall, but the same code won't work to upload a photo to a fan page. I also can't upload a photo to a friend's album. Has anyone been successful in uploading a a photo to a friend's album, or a photo to a fan page or f...

how to manage multiple asynchronous NSURLConnection delegates?

I have a class that makes multiple asynchronous connections where each connection performs its own logic in the delegate methods. Because the delegate is the class itself, how can I implement this separation in logic in the NSURLConnection delegate methods? ...

Having the UIControlEventValueChanged fire when UISlider is being animated?

Hi :) I have set my UISlider up to respond to value changed events: [customSlider addTarget:self action:@selector(sliderMove:) forControlEvents:UIControlEventValueChanged]; [customSlider addTarget:self action:@selector(sliderStart:) forControlEvents:UIControlEventTouchDown]; [customSlider addTarget:self action:@selector(sli...

iphone sleep mode and interaction with apps

To preface this question: I've never actually done iPhone development. Haven't even downloaded the SDK yet. This question arose while I was brainstorming about what kind of app might be interesting and feasible for me to create. That said... I know the iPhone doesn't (yet) support multi-tasking, but I'm curious what happens when it ...

FFmpeg + iPhone - Interesting (incorrect?) video encoding results

I'm encoding some video on the iPhone by running the png image data through swscale to get YUV420P data then encoding that frame using the MSMPEG4V1 codec. In the api docs, avcodec_encode_video should return the number of bytes used from the output buffer by that encode operation. There are 234,000 bytes going into the encoder, but the ...

[iPhone]How to deploy a app with Application Preferences to real device

Every thing is OK in simulator but when I deploy my app to real device (jailbroken) I can't find app's Application Preferences in Setting or my iPhone! What wrong?! Please help me! ...

Cocos2D, UIScrollView, and initial placement of a scene

Hello: I am using a UIScrollView to forward touches to Cocos2D as outlined in http://getsetgames.com/2009/08/21/cocos2d-and-uiscrollview/ Everything works great after a few days of working with it, except one thing: when the initial view appears on the screen, the background appears to be scrolled to the center. As soon as I try to s...

How do I prevent iphone from resizing fonts of my website

Iphone changes some fonts making the site unproportional and not as originally designed. Is there a way to preserve original? ...

memory warning causes blank navigation bar

I have an navigation bar based app and while in a UIViewController I get a memory warning while selecting a photo. It is handled but when I pop the viewcontroller and go back to the top level viewcontroller the navigation bar is blank. Everything else gets reloaded but not the navigation bar buttons and title. I know that viewDidUnloa...

As-You-Type-Searching with Core Data / NSFetchedResultsController

I implemented an as-you-type-searching (text search on single attribute) by fetching with performFetch: after each given character by the user. The performFetch: is running in a background thread to avoid keyboard freezes. But while typing many useless fetches are started. A NSOperationQueue might be an option, but I wonder if there are...

How do i translate this to "simpler" JavaScript?

Since i'm working with Titanium i realzed that its current JavaScript Interpreter doesn't accept specific coding-styles. So for for-loops and if-statements i have to have braces, even though i only want to span one line. Furthermore there is more i have to change if i want to use a Javascript Library like underscore.js. This is what Tit...

iPhone in-App email

Hi, I am using iPhone in-App email feature to send email thru my app. The email goes fine but I am having hard time trying to figure out how to retrive email addresses to which the email was sent. Here is my code: MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [pic...