irevise iphone app

AWARDED
Project Budget (GBP)
£20 / hr

Project Description:
In May 2010 you wrote an app for me using the sdk available at the time.

I have tried converting for IOS 6 but get 3 very similar semantic warnings.

I wondered whether you would be able to update the code to remove the warnings.

The code is;

#import "MainViewController.h"
#import "TopicsXMLParser.h"
#import "ChooseActivityViewController.h"

#import "FlashCardAppDelegate.h"
#import "ColoredAlertView.h"

@implementation MainViewController

- (id)init {
self = [super init];
NSData *topicsData = [[NSData alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"topics" ofType:@"xml"]];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:topicsData];
topicsArray = [[NSMutableArray alloc] init];
TopicsXMLParser *topicsParser = [[TopicsXMLParser alloc] initForArray:topicsArray];
[xmlParser setDelegate:topicsParser];
if( ![xmlParser parse] ) {
NSLog(@"error parsing topics");
}
return self;
}
TopicsXMLParser.h

#import

@interface TopicsXMLParser : NSObject {
NSMutableArray *topicArray;
NSMutableString *currentElementValue;
}

- (id)initForArray:(NSMutableArray*)array;

@end
I get the warning:

Sending 'TopicsXMLParser *' to parameter of incompatible type 'id'

I get 2 similar warnings.

/Users/markdakers/Desktop/new desktop/FlashCard 3/Classes/SelectWordViewController.m:25:25: Sending 'WordDefinitionsParser *' to parameter of incompatible type 'id'

/Users/markdakers/Desktop/new desktop/FlashCard 3/Classes/SelectWordViewController.m:25:25: Sending 'WordDefinitionsParser *' to parameter of incompatible type 'id'

I suspect that this will be an issue that you would have already solved on other projects, so shouldn't take too long.

Hours of work: 1 Project Duration: < 1 week Skills required:
iPhone
Project offered by:
Verified