iphone

Core Data-Linking one-to-many relationships

I have a one-to-many relationship where each department has many employees. When I create a new employee object I just link it to the parent department manually by setting the property to the instance of the department I have fetched from my fetch request. However, this seems to be improper because when I try to access the set of employ...

If I CFRelease() an image in core data, how do I get it back?

My iphone app plays a slide show made up of 5 user images.  These images are stored using core data.  I was noticing that memory was building up every time a different slide show was played and it was not releasing any of the previously played slide shows.   These images are showing up in Object Allocations as CFData. So I tried releasin...

Initializing Detail View from nib with parameters passed from Root View

I'm have a map view with a number of annotations on it... once the callout is clicked, i need to pass several parameters to the DetailViewController, so ive been trying to do this through the constructor. I've debugged a bit and discovered that the arguments are being passed properly and are being received as expected within the constru...

scrollViewDidEndScrollingAnimation

When scrollViewDidEndScrollingAnimation is being called and in which cases would I need to use it? ...

iPad App design decision

I would like to develop a reader app for viewing and manipulating proprietary format documents. The documents are 2D. (Might add some cool page flip effects) The interface is similar to that of mobile safari. I'm trying to decide whether to write this in Quartz2D or OpenGL ES. I have no prior experience with either of those. Any suggesti...

SIGABRT Issues with UIApplication_TVOut and MPVideoView - is there another way??

Hi there, I am due to do a demo in a week of an app which i have been working on for a company - until now, i have been using code taken from this useful tutorial here The problem is that this no longer seems to be working - causing a SIGABRT inside of the following (see initWithVideoView): - (void) startTVOut; { // you need to have ...

Display shift when adding rows to UITableView

Hello, I have a UITableView displaying an underlying NSFetchedResultsController. When the fetchedResultsController is updated, - (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:(NSIndexPath *)newInde...

Pre-populate iPhone Safari SQLite DB

I'm working with a PhoneGap app that uses Safari local storage (SQlite DB) via Javascript: http://developer.apple.com/safari/library/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/UsingtheJavascriptDatabase/UsingtheJavascriptDatabase.html On first load, the app creates the database, tables, and populates the data via a series of...

iPhone: Core Data save Class object

I have an entity in core data called Location. Inside this I have a few fields, such as date. But, I would also like to save a class object in it that I created called Annotation. What type of attribute would I use for this, since it is a custom class object that I created? Location (object) |__ Date |__ Annotation (MKAnnotation prot...

How to update my UIViewController to current orientation when use pushViewController?

i have use this code but it is Private API ,apple also reject! [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight]; if i rotate my device in Landscape then open my Application it will present as Portrait mode, i need to rotate my device to another orientation then it will update. how to update it to correct...

UIEvent for iPhone locking & unlocking?

I am building an iPhone app in which I want to time user activity. However, I don't want to count time when the iPhone was locked (or when the user received a phone call) when calculating the times. What is the best way to do this? Is there a UIEvent which my app can receive (and act upon) when the iPhone locks or unlocks? ...

Core-Plot graph in a UIViewController

Hi guys, im trying to put a Coreplot graph in a UIView. Some questions, should i do it in XIB? or should i do it programmically ? If so how should i write the codes? etc. I actually have two Classes. one called GraphView which is supposed to hold the Coreplot graph. Another called CorePlotViewController. Thx for looking guys. ...

XCode can't find base SDK

XCode 3.2.3 Beta does not allow building for below 3.2. I opened a project that was made in an earlier XCode. For some reason, the base SDK is reported as missing even after changing it to 4.0. Other projects from earlier XCode do not have this issue. What can I do? ...

Twitter and Facebook on iPhone - save sessions across app launches?

Hi I am using OAuth for twitter and fb-connect for facebook authentication in my iPhone app. Is it possible to save the user sessions across app launches? i.e. if the user logs in once, the next time they launch the app, we log them in automatically from some state saved the last time the app closed? For Twitter would it work if I ju...

iPhone time comparison

I am trying to figure out how to create an 'if' statement that uses a time value as a condition. For example: if (time <= 10:00) { score = 3; } else if (time <= 20:00) { score = 5; } else { score = 9; } I know that a string of "5:23" cannot be compared this way but I don't think I can just turn a string value l...

Core Animation: resizing layer from just one side on iPhone

I want to animate the resize of a CALayer. It needs to expand from the left (the right side needs to stay put). Setting the anchorPoint will make resizes work this way, but once I start animating, it doesn't behave the way I want it to. Does anyone have a suggestion? Thanks, and sorry for the noob-question. ...

SQLite/iPhone read copyright symbol

Hi All, I am having problems reading the copyright symbol from a sqlite db that I have for my App that I am developing. I import the information manually, ie, from an excel sheet. I have tried two ways of doing it and failed with both: Tried replacing the copyright symbol with "\u00ae" (unicode combination) within excel and then import...

NSNotification center may not respond to -object ?

Hi, I'm trying to make simple use of the NSNotification center inside my iPhone application, but I seem to be doing something wrong in this case. I was under the impression that it was possible to retrieve an object associated with a particular message, or at least a reference to the object, but using the following example code I'm ge...

CLLocationManager Delegate changes in iPhone OS 4.0

Hi, I have to run my app using iPhone OS 4.0. but while I am running my app the CLLocationManager delegate is not getting called. The delegate method is - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{ } ...

How do I change my iPhone App binary filename

I get the following error when I try to upload the application on iTunes Connect: "Binary file names cannot contain a space. Please rename your binary file and try again." If I try to Validate the Application in XCode, I get: "My Application.ipa: filename may not contain whitespace" So I guess I have to find a way to rename this .ipa ...