iphone

How do I convert from NSString to NSDate?

how to convert from NSString to NSDate ? it must be in yyyy-MM-dd HH:mm:ss this format when it converts from NSString to NSDate format ...

iPhone, app release, change device requirements

I have released an app in the appstore months ago. It was first made only for iPhone (because I wanted to do so), now I would like to release it also for the iPod Touch. What I have to do to make the iphone app available to ipod touch too? When I update the app (new version tested on the ipod) I cannot change the value of the dropdown ...

iPhone Development - UIImageView memory issue

Background: Inspired from Apple's sample code ScrollViewSuite, I've created a view controller class that shows picture thumbnails and one selected picture. The hierarchy of controls for the "selected" picture is something like this: --> UIView --> UIScrollView --> UIImageView Following code is used to put the UIScrollView...

Fastest way to check if an object exists in Core Data or not?

I want to see if an object is persistet in Core Data or not. For example, I have Friends in Core Data, and I identify them by firstName. I can query core data to see if "George" is known. If the result set array contains more than zero objects, I know George is there. But Core Data loads the whole thing into memory, and I actually just w...

Cocoa touch view with multiple identical subviews

I'm having my first foray into Cocoa Touch programming (and one of my first into Cocoa in general) and writing a simple game for the iPhone, though this question is about cocoa touch in general. The main UI consists of a strip of identical acting buttons (only varying in colour) arranged horizontally across the screen. Although they act...

Core Data on device vs simulator

I have a simple Core Data application, with a table view and a drill down view. When I build and run in the simulator, all of the data in my database loads and the table view/drill down views function properly. When I build and deploy to a device, my application only loads a small subset of the data (a few sections, A - C). I have no w...

Editable tableHeaderView in UITableView (like Contacts App)

Hello! I'm currently trying to implement a editable details view using a grouped UITableView. I'd like it to look like the Contacts application: in viewing-state it should display the header as plain label (in Contacts it's the name with TRANSPARENT background). in editing-state it should display the header as editable UITableViewCell...

Implementing URL Shorteners in my iPhone Application

How do I implement is.gd's URL shortening API in my iPhone Application? ...

Can I clear the Managed Object Context?

Problem: I am doing a really big import where I parse an XML file. For every 10 parsed managed objects, I want to save the Managed Object Context and get rid of those 10 objects in memory, so that I have never more than 10 objects in memory at a time. After saving it, how could I clear the context so that all the objects go away from me...

When NSThread returns to a released object? (iPhone)

Hi I have got a memory bug that seems to boil down to something happening in a thread. I am having difficulties troubleshooting this. I have a UIViewController, that when active, i.e. the user is using its view, retrieves updates from a web service in an NSThread. This is done every 3 minutes and this delay is controlled by a: [self ...

How to increase the height of the cell in a tableview in iphone?

I am new to iphone development.I am parsing a xml file and displaying the title, date, view and summary in each row of a table.The contents of summar is big ,so only first 3 words are displayed in the cell.How can i increase the height of the row with respect to the length of the contents.All the content should fit properly inside the ...

iPhone: Is this a leak or not

Recently someone on Stack Overflow told me that the code below does not leak, that the property handles retention itself: self.locationManager = [[CLLocationManager alloc] init]; in dealloc : self.locationManager = nil; where in the .h file: @property (nonatomic, retain) CLLocationManager *locationManager; I thought that was ...

Many-to-many relationship with optional value?

I have a many-to-many relationship between two tables: Order and Item. I need to save an extra information on this relationship, the quantity. So, I have to create an extra table in my model .xcdatamodel? In the following schema, both orderItems are to-many relationship to OrderItem table. order & item are inverse relationship. Orde...

Program received signal: “0”

Want to implement the application like Season's Greeting http://itunes.apple.com/us/app/seasons-greeting/id345499393?mt=8 But i am getting the following error when i have added multiple imagesViews in UIScrollView: Program received signal: “0” warning: check_safe_call: could not restore current frame I have already added images as a ....

Is there a way that I can make an overlay view on the iPhone SDK?

I've seen examples of overlay views in different iPhone apps (Skype, Phone.app (while making a call), Google Mobile) and I was wondering how I could do the same in an app. I'm making an app which has a record button in it and when that button is pressed, I want a nice looking overlay (similar to the overlay view that appears when making...

iPhone tableview does not create cell for added row

I have a SQLite DB containing tasks. Each task has a date, and there can be multiple tasks per date. My app loads the data for one month only into a mutable dictionary. The key of each dictionary item is a string of the day of the month (1, 2, 3 ... 31). The corresponding value is an array of tasks for that date. Thus, for each day of t...

shaking on 3.0 in a UITableViewController

Hello, after reading some posts about implementing shaking on 3.0, I think I get the idea but I'm not getting any call to the: motionBegan motionEnded motionCancelled this is an example of what I've read: http://stackoverflow.com/questions/1340492/how-to-detect-and-program-around-shakes-for-the-iphone I'm sure I've added the [self b...

Can an Xcode project with multiple targets have different Settings.bundle's for each target?

I have a settings bundle in an iPhone app which has several subtle variant targets. The problem is I need to customise some strings in each settings bundle to make them appropriate for each target. It appears that if the Settings bundle is named anything other than Settings.bundle it won't pick up the bundle (understandable, can I speci...

Problem getting data from SQLite3 on iPhone

I've been trying to return data from a table after already having accessed two before it, but in this case it get's into the while statement but does not assign any values as everything is set to null. The code is: NSMutableArray *all_species = [[NSMutableArray alloc] init]; sqlite3 *db_species; int dbrc_species; Linnaeus_LiteAppDelega...

Keeping iPhone application in sync with GWT application.

Hi, I'm working on an iPhone application that should work in offline and online modes. In it's online mode it's supposed to feed all the information the user enters to a webservice backed by GWT/GAE. In it's offline mode it's supposed to store the information locally, and when connection is available sync it up to the web service. Curre...