iphone

iPhone OS: implementing your own achievements, how do I do it?

I'm working on a game where really the only game part is (at least right now) that the user can unlock achievements as she does various things throughout the game. I have a database that can keep track of certain user actions and record how many times a user does something but I'm having trouble figuring out the best way to architect the...

changing text color in custom UITableViewCell iphone

Hello. I have a custom cell and when the user selects that cell, I would like the text in the two UILabels to change to light gray. ChecklistCell.h: #import <UIKit/UIKit.h> @interface ChecklistCell : UITableViewCell { UILabel *nameLabel; UILabel *colorLabel; BOOL selected; } @property (nonatomic, retain) IBOutlet UILa...

API for sending SMS through iphone

Is there some kind of API to send SMS using iPhone. Because I want to create a website to do that and also can I hide the origin Hp number or change to another number etc ...

What is a safe way to check for a protocol response

Here's a scenario: A view controller pushes a new controller to the nav controller. This child controller creates a model that uses a NSURLConnection. When this connection finishes it will make a call like the following: [self.delegate modelDidFinishParsing:self]; What is the safe way to produce this code? Right now, I have this c...

cancelPreviousPerformRequestWithTarget is not canceling my previously delayed thread started with performSelector

Hello, I've launched a delayed thread using performSelector but the user still has the ability to hit the back button on the current view causing dealloc to be called. When this happens my thread still seems to be called which causes my app to crash because the properties that thread is trying to write to have been released. To solve ...

UIAlertView -show causing a memory leak

I'm relatively new to iPhone Development, so this may be my fault, but it goes against what I've seen. :) I think that I'm creating a UIAlertView that lives just in this vaccuum of the 'if' statement. NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; if(!data) { // Add an ale...

iPhone SDK Objective-C __DATE__ (compile date) can't be converted to an NSDate

//NSString *compileDate = [NSString stringWithFormat:@"%s", __DATE__]; NSString *compileDate = [NSString stringWithUTF8String:__DATE__]; NSDateFormatter *df = [[[NSDateFormatter alloc] init] autorelease]; [df setDateFormat:@"MMM d yyyy"]; //[df setDateFormat:@"MMM dd yyyy"]; NSDate *aDate = [df dateFromString:compileDate]; ...

Building/Testing a Universal iPhone/iPad application

I have a project configured (I think) to produce Universal binaries. The base SDK is set to 3.2 and the Deployment Target is set to 3.1. Target Device Family is iPhone/iPad and the architecture is armv6 armv7. I had a few questions about how this Universal binary thing really works: 1) When I want to submit an app binary for review, wh...

iPhone SDK allow touches to affect multiple views

I have a main view that has has two buttons on it that control methods to display the next image and display the previous image. In this case the 'Image' is a class that inherits from UIImageView and has multiple pictures on it that you can interact with, and I call this class a 'Pane'. The pane itself handles all the user interaction it...

Is it possible to install iPhone SDK 4 beta and SDK 3 on the same Mac?

I want to test the new OS 4 beta but I still need to update my OS 3 apps on AppStore. Is it possible to install iPhone SDK 4 beta and SDK 3 on the same Mac? Thanks! ...

How to generate a certificate signature on the iPhone?

Hi, If I had a private certificate file and a string on the iPhone, how do I use them to generate a signed string that can be verified by a server with the matching public key? What library should I use on the iPhone? ...

iPad built in dictionary

Is the built-in dictionary in iBooks etc available to developers? If so how would I go about using it? ...

Chinese records of sqlite databse are in not accessable in iphone app

Hi! I'm creating an iphone app. In which I'm reading data from the sqlite db and presenting it in the tableview control. Problem is that the data is in chinese language. Due to unknown reason, when I read/fetch record from the sqlite table, some records are presented and other are missed by objc. Even objc reads some columns of the missi...

How to get rid Memory Leak problem "open_handle_to_dylib_path"

Hi Friends, I am getting a memory leak of 128 bytes, in my iPhone App and the responsible caller mentioned in Instruments was "open_handle_to_dylib_path" and the responsible library is "CoreGraphics". So has anybody encountered this problem ? Thanks and regards, krishnan. ...

iphone pushviewcontroller to landscape

I've simple iphone application. it has 3 views. first view is portrait view that has 3 buttons. second view has a table view which is also a portrait. In first view, on click of a button second view is shown. on click of a cell in second view, thrid view is shown. but third view is a landscape. I'm using "pushViewController" to navigate ...

Is NSXMLParser's parse method asynchronous

Is NSXMLParser's parse method asynchronous? in other words if i have an NSXMLParse object and i call [someParseObject parse] from the main thread, will it block the main thread while it does it's thing? -Thanks for answering this seemingly noob question. -Ben ...

mail sqlite values in iphone

Hi, I'm creating an app that has a database using sqlite. On my app I've populated a UITableView with the data from the sqlite database. The values on the tableView can be edit by user and save it on the sqilte. What I wanted to do was I need to mail the values from that table. How can I insert the values of that table to the mail that ...

iPhone/iPad C++ Example

Does anyone know where or how to obtain a C++ example to create iPhone apps? What I am looking for is just using C++ (no objective-C or just the bare essential objective-C) and no interface builder, source only. Can ayone help me locate such a beast? ...

NSDate & Memory management

Hi, memory management still gives me grief. This time it is an NSDate iVar that I init using NSDate *myNSDate = [[NSDate date] firstDayOfMonth]; with a method call to - (NSDate *)firstDayOfMonth { NSDateComponents *tmpDateComponents = [[NSCalendar currentCalendar] components:NSYearCale...

Flickr getrecent photo api with objectiveflickr

hi anyone know how to do api request for get recent photo from flickr ?, i'm still new to objective c, if anyone have tutorial or simple example to do it for iphone application that will be great. ...