objective-c

IPhone: Does my app need to support multitasking?

Is this now a mandatory requirement before uploading to the app-store? As I understand it, making my app compatible with multitasking is something extra that I need to implement. (?) ...

IPhone: Resources to learn 'instruments' ?

Hi, I'd like to use instruments to verify is my program doesn't have any memory leaks. Can you please provide me with some resources or tips that helped you as you were trying to figure this out? Maybe some video screencasts, or something. This program is pretty complicated and I'm not too familiar with such low level profiling utils ...

while refreshing the MKMapView, current location pin should move smoothly or animate to its current position

I have one problem: while refreshing the MKMapView the current location pin is not moving to its current position smoothly. How can I make it to move or animate smoothly? ...

Is it possible to use Webkit as a framework on iPhone?

Hi guys. I'm developing on iPhone App.And I want to use webkit for browsing. As you know apple provides webkit(UIWebview). but it just provides extremely limited api like loadpage, back and forward something like that. So, my question is how can I use webkit engine? Anybody know? It's ok even if you just know a little hint for this. ...

Initialize NSDate with custom date

Hello, I'm looking for something like: NSDate *date = [[NSDate alloc] initWithYear:1984 month:10 Day:8]; Is there a way to do something like this? Thanks! ...

iPhone openGL error : ERROR: 0:1: '<' : syntax error syntax error

Hi Friends I am new to openGLES, trying to work with HelloArrow program using shaders from a Site but when i compiled i got the following error, Source code Download HelloArrow.zip ERROR: 0:1: ' attribute vec4 SourceColor; varying vec4 DestinationColor; uniform mat4 Projection; uniform mat4 Modelview; void mai...

How to dial a number in Iphone for India

I want to dial a number from IPhone simulator for India. I have tried this on a button click: -(void)makeaCall { NSURL *phoneNumber = [[NSURL alloc] initWithString: @"tel:1-800-180-2222"]; [[UIApplication sharedApplication] openURL: phoneNumber]; } But it's not showing any action of dialing any number. Please help me with this. ...

Iphone Grouped tableview with nib file by row, my rows restart in every section and it wont show the next section rows

Hello Guys Im starting with the SDK and I am trying to set an app using a tableview to display the info, Im going to say thanks in advance, because I know some of you experts can help me with my problem. I created a window base application and Im using a tab bar with a tableview that has a navigation bar to go back and forward in it, an...

NSData not working correctly

NSData *myRequest = [NSString stringWithFormat:(@"&site=%@&key=%@",tmpSite,tmpKey)]; Why is this not working ? Thanks ...

Calling web service and XML Parser from another class..

Hi, I have an application in which I have to hit many web services in same class and from another classes also and I have to parse the data each time.I cant write the delegate methods for webservice hit and XML Parse everytime as its not a good programming practice. So I thought of maintaining common classes for 'webserviceHandler' and ...

Yet another arc4random problem.

Built an iPhone app that generates a random number to a label when a button is pressed. Simple, just to learn new skills. it works fine, but any value i put doesn't seem to limit the value of the random number generated. it's always 9 digits. -(IBAction)genRandnum:(id)sender { NSNumber *randomNumber = [NSNumber numberWithInt: (ar...

UIView being retained

Hi, I'm having real problems tracking down why my UIView isn't deallocing. I have a UIViewController with several UIViews, all of which are IBOutlet properties that retain. I'm sure to release the UIView in the dealloc method of the UIViewController. However the dealloc of my UIView is never called. I have no idea what else has reta...

Should I subclass the NSMutableArray class

I have an NSMutableArray object that I want to add custom methods to. I tried subclassing NSMutableArray but then I get an error saying "method only defined for abstract class" when trying to get the number of objects with the count method. Why is the count method not inherited? I read somewhere else that I will have to import some NSMu...

I am getting error in sending argument with space.

Hi all. I am sending argument from my iphone application to php page to genrate xml given below. feedurl=@"http://www.abc.net/feed/index_clatest.php?more=s-laday gaga"; The url run in mozila when it runs. but when i run it in my iphone application i get the following error. erminating app due to uncaught exception 'NSInvalidArgumen...

Reload searchresult without a tableview

Hi, I have a MapView and a searchbar with a searchDisplayController And I want to know how I can reload the table of the searchDisplayController. without a Tableview. Most of the information/tutorials i found on the internet is adding myTableView to the tableView but I don't have a table, so how do I reload the searchDisplayController?...

Check iOS version at runtime?

This is sort of a follow on from my last question. I am using beginAnimations:context: to setup an animation block to animate some UITextLabels. However I noticed in the docs that is says: "Use of this method is discouraged in iOS 4.0 and later. You should use the block-based animation methods instead." My question is I would love to us...

Tableview cells does not display data when in integer format.

My application has a sqlite database and i m using executeQuery methods to retrive and insert data. Problem I cannot assign integer values cells of tableview. It does not display data which is in integer format. i want to store integer values into a tableview and show sorted integer data to user. Here i am posting my code 1) in vi...

Creating static library from C++ code and linking with iPhone SDK

I have written some code in C++ with a corresponding C interface (i.e C-function wrappers around the classes) that a friend wants to use in an iPhone application. Since I heard you can compile C++ for the plattform, but not use the iPhone sdk at the same time (sic) I thought that compiling all the code into a static library that my frie...

Cannot pass string through classes

//Initialize the detail view controller and display it. OrderDetailsView *dvController = [[OrderDetailsView alloc] initWithNibName:@"OrderDetailsView" bundle:[NSBundle mainBundle]]; dvController.selectedOrder = (@"%@",selectedOrder); [self.navigationController pushViewController:dvController animated:YES]; [dvController release]; dvContr...

Crash when releasing object created using initFromFile method

Hi - I've created an object called 'DateTracker' which conforms to NSCoding, so it contains encodeWithCoder and initWithCoder methods. When I initialise it, I call the following: DateTracker *currentTracker = [[DateTracker alloc] initFromFile]; The initFromFile method looks like this: - (id)initFromFile { NSString *filePath = [s...