iphone

How can I read entries from sqlite with german umlauts on iPhone?

How is it possible to read the German umlaut from an sqlite? All I get are weird characters. Thank you! ...

How to get functionality of hidesAccessoryWhenEditing

Since hidesAccessoryWhenEditing is depricated in the iPhone 3.0 SDK, what is the replacement? How do you get the same functionality? ...

Drawing incrementally in a UIView (iPhone)

As far as I have understood so far, every time I draw something in the drawRect: of a UIView, the whole context is erased and then redrawn. So I have to do something like this to draw a series of dots: Method A: drawing everything on every call - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext();...

Problem reading a string from an NSDictionary inside an NSMutableArray stored using NSKeyedArchiver.

I'm saving some data using a series of NSDictionaries, stored in an NSMutableArray and archived using NSKeyedArchiver. I'm basically trying to save the states of several instances the class 'Brick', so I've implemented a getBlueprint method like this (slimmed down version) -(id)getBlueprint { // NOTE: brickColor is a string NSD...

Is it possible to implement per-iTunes account DRM for in-app purchased content?

The receipt Apple returns from a purchase does not include the iTunes account information of the user that purchased the content and there also doesn't seem to be way of having Apple verify if a given device UUID belongs to an iTunes account. Is there anyway to implement a secure DRM system that allows users to purchase content once and...

NSFetchedResultsController ERROR:

Afetr inserting a new record into my CoreData store using an NSFetchedResultsController, when I then try to display the data in a grouped UITableView the app crashes with the following error" NSFetchedResultsController ERROR: The fetched object at index 5 has an out of order section name 'Navigation. Objects must be sorted by section na...

Split File Path into Components in iPhone SDK

Is there a framework or a library that I could use to split a file path into its components in iPhone SDK? I know I could code it myself, but I don't want to reinvent the wheel. ...

UITextField with secureTextEntry is not respecting clearsOnBeginEditing

If I set clearsOnBeginEditing and have a secure text field and if you lose focus on the field and come back again and start typing it will always clear the textfield. Does anyone have a way around this? ...

Xcode organising files and folders (core data model objects - iPhone)

I am developing for the iPhone and the prevailing advice on auto-generating files from entities, when using Core Data, is to select the *.xcdatamodel file and the create the new file(s) etc. This creates the *.m and *.h files in the Resources directory. These are then moved to the Classes directory or a subdirectory of Classes. Howeve...

Determine section index from UITableView section header or footer?

I have a multi-section table view, and each section has a button in its footer that should add a new item to that section. The number of sections is not pre-determined or limited, so I can't make a separate selector for each section like "addItemToSection1", etc. I also can't just store the section index in the button's "tag" property s...

Core Data (iPhone)- Limiting the fetch results across a relationship

I have recently been looking at Core Data for the iPhone and I have one query which I have not been able to find an answer to in the literature. Lets imagine that I have a User model object with a to-many relationship with a Purchase object. A User may have thousands of purchases. All of the information I have seen thus far seems to su...

Core Data Instruments for the iPhone

Hi there, I'm trying to monitor my core data usage but all the Core Data instruments are greyed out in Instruments. It's also not available from the "Run with Performance Tool" in Xcode. It says that the Core Data instruments are for the Mac and it's not available on the iPhone, but I've heard people talking about using it, and it's men...

iphone table view delete entry and update app engine db

Hi, I have a tableview with data, that i post to the app engine database. Whenever i delete an entry in the table, i want to delelte the item in the app engine database as well. How do i know which entry to delete? I was thinking of this: for every item i save in the GAE store, i make a reference to a model with the iphone unique devi...

How to delete a contact from address book in iPhone using objective-c ?

Hi all, I want to delete a contact from the address book in iPhone how can we do that ? Thanks ...

SImulator - Device Problem on iPhone - Images displayed differently

I have problem displaying images.... It works perfectly on simulator but on iphone device it doesn't work.... here is the code for it... Please Help - UIView *shareView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 95)]; shareView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bgImage.png"]]; UIButt...

JXTA Applications on the iPhone

I'm creating a P2P Java application in JXTA, for simple messaging between peers. I want to create a similar program on the iPhone, that will be able to talk with this java JXTA program. Is this possible to do? I know theres JXTA-C which would work on the iPhone, but I'm not sure if the JXTA-C will communicate properly with JXTA-Java. I...

programatically set comment with attachment in fb connect for iphone

Using FB Connect for iPhone. I'd like the user to be able to post a link with thumbnail to their profile. This is done using the "attachment" property on FBStreamDialog. In addition, I'd like to be able to provide a custom interface for the user to enter in a comment with the attachment. (The comment would be the message that's assoc...

IPHONE: How do I extract the RGB channels of a UIIMage?

I have an UIImage with alpha channel. How do I extract the RGB channels of a UIIMage, each one to be an independent UIImage with alpha? thanks in advance. ...

Xcode missing Command Line Utility section - can't start Foundation project template

I downloaded the iPhone SDK from the iPhone dev center a couple of days ago and installed it yesterday. I'm following the Stanford iPhone development tutorials available on iTunes U. On Assignment 1B, the first instruction is to open a new Foundation Project template. The screenshot shows several sections in Xcode which my version doesn'...

Use a Plist dictionary for App settings

I want to be able to use a plist for settings Im implementing in my app. I want a dictionary "Settings" to hold my arrays, such as "Debug", "Option 1", Option 2", etc. How would I access "Debug"array under the "Settings" dictionary? This is what my code looks like: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirect...