iphone

problem in addinglibxml or facebook sdk

hi iam currently working in one iphone application in which i have use facebook sdk and libxml2 framework . but my problem is that when iam adding facebook to headerPath it add successfully and libxml adding on userheaderpath then libxml shows error,then i was replace facebook to userheaderpath and libxml on headerpath then my fac...

Objective-C Core Data: Access data from child of child

I'm slowly figuring out Core Data for my iPad app, but I just can't seem to figure out how to access data from my to-many children (who also have to-many children). I'm hoping to get some code examples from the experts here. Let's use a simple data structure: Parent -(to many)-> Child -(to many)-> Toy I can fetch the Parent just fine ...

Save state of my app

Helllo all, in my app there is a story 1 hour i want to know if the user exit the app in the half (time) of the story or any time then when he return i want to continue from where he left any idea will be great thanks ...

How to get table target cell inside tableView:heightForRowAtIndexPath:?

Hey community, I am trying to get variable-height table cells implemented and what I thought would be an elegant solution turned out into a recursion/stack overflow: - (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { MyCustomCell *cell = (MyCustomCell *)[aTableView cellForRowAtIndexPa...

CorePlot real time graphing

I'm new to coreplot and not sure quite where to start. I would like to plot data points as they arrive. I'm recording finger touches and how long between each touch. I would like to plot them as they are happening. Thanks for any pointers. rd42 ...

what are the best Practices for developing applications using Titanium Framework targeting iPhone & Android?

I am planning to develop an application using Titanium Framework for iPhone and Android. Can someone list the best practices, do's and don'ts for the development using your experience with the framework? ...

Open GL ES Texture image quality

Hello, I have been having a bit of trouble with this issue with a while and have decided to ask for help! I have a textured 1024 x 1024 area in my iphone application. I am texturing it using an image that i converted to .pvr4 format using Apples texturetool. Now the user has the option of zooming in on this textured object.... The ...

How can I enable each word tapping in UITextView for IPhone

Hi, I have a requirement wherein I have to provide tap/click/touch event for each word in UITextView. Any help would be really appriciated. ...

Memory management question: does this code has a memory leak?

// ClassA.m NSString *strA = [[NSstring alloc] initWithString:@"test string"]; ClassB *classB = [[ClassB alloc] init]; [classB setStrB:strA]; [strA release]; // classB will be released later // ClassB.h @property (nonatomic, retain) NSString *strB; // ClassB.m // custom setter -(void) setStrB:(NSString *)newStr { strB = newStr...

How can I get the ISO language code in IOS?

How can I get the current ISO language code in IOS? ...

initializer, properties, accessors and copy/retain/readonly

I want to understand how to set the parameters of properties (accessors). I took the following code from an example of Kal calendar. // Holiday.h @interface Holiday : NSObject { NSDate *date; NSString *name; NSString *country; } @property (nonatomic, retain, readonly) NSDate *date; @property (nonatomic, retain, readonly) NSStri...

Mapkit used in a grouped table cell and extends the rounded corners

I have a custom UITableViewCell set up with a MKMapView set up within the cell. I would like the map to take up all of the cell and so I have set the Map View to have the same dimensions as the TableCell. The application is working ok, but the square corners on the Map View extend beyond the bounds of the table cell. Is there a way to...

iPhone Reading Property From Other Class In UITab

I'm new to Objective-C and have a little bit of problem. I made an app that has a button that switches to tab number 2 in the app but I want it to get specific data from the database so I've written code in which I pass from the first view a number which is the id of the row I need to the second view @synthesize goTo; -(IBAction)go...

apple has rejected my iPhone app saying it must run on iPad as well

Hey, I've just submitted my app to review (for the App-Store), and apple has rejected my app, saying the following: "On iPad, the application displays a black screen and no content loads. This review was conducted on iPad running iOS 3.2.2 as well as iPhone 4 running iOS 4.1. A screenshot has been attached for your referen...

Obj-C Global Strings & Variables

There's some way to declare Strings and Variables in Obj-C for iPhone? I mean, i want to display the data input on textfield in 01.xib on 02.xib label's. How can i do that? Thanks! ...

Using self on iVars in dealloc?

Usually I write my dealloc to look like this: - (void)dealloc { [coffeeList release]; [super dealloc]; } But today I typed (see below) and was a little puzzled why I got an error running the code through the CLANG static analyser. As I say I don't usually add self to iVars in dealloc, but was just a little curious when I spott...

How to find out if a UIViewController is the root view controller?

Hi there basically I want to know if the view controller I'm in is the root view controller or not. If its not I want to put a button in the nav bar that says "back" (as if it were a proper back button - this bit I know how to do). Before you ask, I have removed all the titles from my view controllers - I didn't want them to show up o...

Releasing memory allocated in class method initialize

I am allocating memory in the class method initialize: UIColor * customBlue; UIColor * customRed; @implementation UIColorConstants + (void)initialize{ if ( self == [UIColorConstants class] ) { customBlue = [[UIColor alloc]initWithRed:0 green:0.137 blue:0.584 alpha:1]; customRed = [[UIColor alloc]initWithRed:.91 green:0.067 blue:...

How can I center a UIMapView around an array of MKAnnotation?

How can I center a UIMapView around an array of MKAnnotation? ...

@dynamic properties and its usage?

Can anyone give me clear picture about dynamic property and its usage? y not use the usual @property everywhere? ...