Find Jobs
Hire Freelancers

Convert Object C function to Swift 3 and test with data

$10-30 USD

Færdiggjort
Slået op over 7 år siden

$10-30 USD

Betales ved levering
I need the Objective C function below converted to Swift for for iOS or OSX. Would prefer OSX. I'll provide the two csv files for testing. Don't need anything fancy to test a simple form and this function called. - (NSArray *) getMaterials; - (NSArray *) getLockingAssemblies; @synthesize materials; @synthesize lockingAssembly; - (void) initFromCsvs { // materials NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Material" ofType:@"csv"]; NSString *content = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil]; NSArray *contentArray = [content componentsSeparatedByString:@"\r"]; NSMutableArray *workCopy = [[NSMutableArray alloc] init]; for (NSString *item in contentArray) { NSRange filter1 = [item rangeOfString:@"Perth"]; if ([login to view URL] == NSNotFound) { continue; } NSRange filter2 = [item rangeOfString:@"EndDisk"]; if ([login to view URL] == NSNotFound) { continue; } [workCopy addObject:item]; } materials = [[NSArray alloc] initWithArray:workCopy]; // NSLog(@"materials count %lu", (unsigned long)[materials count]); // lockingAssembly NSString *filePath2 = [[NSBundle mainBundle] pathForResource:@"LockingElements" ofType:@"csv"]; NSString *content2 = [NSString stringWithContentsOfFile:filePath2 encoding:NSUTF8StringEncoding error:nil]; NSArray *contentArray2 = [content2 componentsSeparatedByString:@"\r"]; NSMutableArray *workCopy2 = [[NSMutableArray alloc] init]; for (NSString *item in contentArray2) { NSRange filter1 = [item rangeOfString:@"LockingAssemblyID,PartNumber"]; // header out if ([login to view URL] != NSNotFound) { continue; } [workCopy2 addObject:item]; } lockingAssembly = [[NSArray alloc] initWithArray:workCopy2]; // NSLog(@"lockingAssembly count %lu", (unsigned long)[lockingAssembly count]); }
Projekt-ID: 12907708

Om projektet

5 forslag
Projekt på afstand
Aktiv 7 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
Tildel til:
Brug Avatar.
Dear client, I have gone through your job description & understand requirements. I will be glad to share my expertise with you. ***Apple Latest IOS10 Features*** Facebook/Twitter/Google Api***Google MapKIt***Video/Audio Streaming***Push Notification***Graphics Design***Animation***UIKit***Database/Address­book/Calendar***GPS***In App Purchase Server Side PHP (core),Codeigniter Framework(MVC),ASP.NET,ASP.NET MVC Framework,Wordpress,C#.Net,JAVA Below are the links of few Apps done by Us : iOS Apps: [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL]
[login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] Thanks
$35 USD på 1 dag
5,0 (31 anmeldelser)
6,4
6,4
5 freelancere byder i gennemsnit $25 USD på dette job
Brug Avatar.
hello i m intrested to do that work i have developed 3 project in Swift 3 so i can do easily within an hour i have 4 year experience thanks
$30 USD på 0 dag
4,7 (18 anmeldelser)
4,3
4,3

Om klienten

Flag for UNITED STATES
Bonita Springs, United States
5,0
140
Betalingsmetode verificeret
Medlem siden okt. 25, 2004

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.