objective-c

howto remove error the service is invalide please check your setup and try

I have been working away and things are going well, except suddenly when I try to build my project, I get the following errors in Xcode: 1 - in an alert box on upon building: The service is invalid Please check your setup and try again. (0xE8000022). ...

Question regarding iPhone core data and how to duplicate features for multiple users...that doesn't make sense, just read my question :)

So I am working on a simple iPhone app, that uses core data to manage objects. My code is similar in function to Apple's CoreDataBooks app, found here. There is a blank UITableViewCell, and you have the ability to add objects to this blank list. If you hit the add button, a DetailViewController pops up that manages the attribute of each ...

Error : The service is invalid

Hi everybody, I am having some problem in installing my app on the iphone as I am constantly getting the following error message The service is invalid Please check your setup and try again (0XE8000022) It was running perfectly well till yesterday but since yesterday I am having this problem. Can anyone help me with this... Thanx...

how to use counter in objective c??

Sir, I'm making a pedometer application using the accelerometer feature of the iPhone. I just want to detect the steps while walking using some counter. Should I use a loop to get the updated X,Y,Z coordinates? Kindly suggest. ...

Accessing an object class member without self.var in a UIViewController

I have a view outlet in my view controller. It's defined like this: IBOutlet MyView * view; The MyView class has some instance methods in it. I try to use them in the view controller like this: int x = [view someMethod:4]; Xcode doesn't show any warning, no runtime errors are produced, but it doesn't call the method at all. When I ...

How to create a tar ball of few files in iphone sdk

Hi I have few images which i want to archive and make a tar ball file, Please if you have any reference or sample code , will be helpful Thanks in advance for everyone Kamal ...

iphone objective-c interesting problem with accessory and setEditing

hi guys In my DetailViewController i have the code UPDATED x2 This is my setEditing - (void)setEditing:(BOOL)editing animated:(BOOL)animated { [super setEditing:editing animated:animated]; [tableView setEditing:editing animated:YES]; //this line was added to force editing Mode .... In my detailViewController I want to send ...

How to display the title in detail view corresponding to the row selected in the table

I am new to iphone development. I am displaying an array of data in a table. Upon clicking the row, it navigates to the corresponding detail view. I want to display a title in the detail view corresponding to the row selected in the table. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { ...

Creating zip files in ObjectiveC for iPhone

Is it possible to create .zip files in objective C ? Any libraries available or suggestions ? ...

Problem in the flow of custom back button when using UIView controller

I am new to iphone development.I have created a button in UIView controller.On clicking the button it navigates to a another UITableView controller .On clicking the row of the table leads to another UIView controller which has also another table in it.On clicking the row of this table leads to another UIWebView.I have created a custom b...

String encoding of scandinavian letter from url to utf8 to const char on iphone

NSString *theString = @"a %C3%B8 b"; NSLog(@"%@", theString); NSString *utf8string = [theString stringByReplacingPercentEscapesUsingEncoding: NSUTF8StringEncoding] NSLog(@"%@", utf8string); const char *theChar = [utf8string UTF8String]; NSLog(@"%s", theChar); This logs the following: 'a %C3%B8 b' 'a ø b' 'a √∏ b' The problem i...

Xcode hides warnings after recompile

Take this scenario: after a compile from scratch of a Cocoa Touch project, Xcode may report several compiler warnings in different files. If I fix the warnings in only one of the files and hit Build to see if it works, Xcode will no longer report any warnings in the other files (it will continue showing those in the currently open file ...

How do you do TDD in Xcode?

Are there any good unit testing and acceptance testing frameworks that can be applied to XCode projects? I'm accustomed to doing TDD in Ruby and Python but am new to Objective-C and XCode. ...

NSTimer with delegate method

I'm trying to set up an NSTimer on a delegate - I'm so very new to objective-c so apologies if this doesn't make much sense. But what I have written is: animationTimer = [NSTimer scheduledTimerWithTimeInterval:(NSTimeInterval)((1.0 / 60.0) * animationFrameInterval) target:self.delegate selector:@selector(drawView) userInfo:nil repeats:T...

How automate sqlite db creation in Xcode and put it in the app bundle

I have a sqlite DB that has a lot of test data inside. Currently, I load the data inside the app code, but take several minutes inside the iPod I use for testing. I wonder if is possible to make in Xcode a pre-build tests that inits the db, then adds it to the app bundle, so I can extract it from the iPod. I'm stuck in how create & pre...

Why isn't removeFromSuperview hiding my UIView in my iPhone application?

I'm new to iPhone development and am having problems removing a sub-view from the main window. The problem is that the view still shows up even after calling removeFromSuperview. The sub-view is created and added to the display tree through this code: // Instantiate the controller for the authentication view AuthenticationController...

how do i launch the iphone sms text application in objective-c via the sms: url scheme?

I have a button in my obj-c application that I would like to launch the iphone text application when a button is pressed. i've looked at the solution here http://stackoverflow.com/questions/2011139/how-to-use-iphone-custom-url-schemes and have attached an action to my button (via the 'touch up inside' event), but the text app doesn't l...

How long does it take to learn objective c/iPhone sdk coming from an object oriented PHP background?

I know it's not an easy question to answer, but a client of mine came to me and asked if I'd be interested in a "get paid to learn objective-c and iPhone development" project before they go to another developer. I come from a a web background and my primary languages is PHP. I consider myself to be at expert level. I develop using Zend...

[iPhone] ASIHTTPRequest, EXC_BAD_ACCESS when request did finished

Hi, I'm trying to do an asynchronous request with ASIHTTPRequest, but have some problem getting notified when the request is done. -(void)doDownload{ NSURL *url = [NSURL URLWithString:@"http://www.someurl.com/?"]; ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; [request setPostValue:@"someValue" forKe...

Objective-C memory management (alloc and autorelease)

When you allocate and initialize and object, and then want to return that object, how are you supposed to return it? I have the following code: NSXMLDocument* fmdoc = [[NSXMLDocument alloc] initWithContentsOfURL:trackInfoUrl options:NSXMLDocumentTidyXML error:&err]; return [fmdoc autorelease]; Is this correct? ...