Tuesday 15 June 2010

parsing - Do I need a string in this function? -



parsing - Do I need a string in this function? -

for reason i'm getting 4 errors in code:

unknown type name 'func' expected function body after function declarator (which thought included) type specifier missing defaults 'int' expected ')'

here's code function i'm trying write, supposed add together vote poll selection when button selection pressed:

func addvote(countoption1: string) -> string { allow result = countoption1 += 1 homecoming result }

what missing code execute function, , how can add together name of selection vote stored for? 1 time again votes need stored on parse.com business relationship , i'm trying homecoming result each poll. button i'm trying add together above 1 option, in poll 2-4 additional options.

i think while creating project forget select programming language swift create new project , set programming language swift , seek code. think going work on that.

parsing swift

No comments:

Post a Comment