why switch will expect statement before loading nib
Posted
by
kiran kumar
on Stack Overflow
See other posts from Stack Overflow
or by kiran kumar
Published on 2011-01-05T06:32:50Z
Indexed on
2011/01/05
6:53 UTC
Read the original article
Hit count: 280
iphone
In Switch statement
Example
switch (indexPath.row)
case 0:
Loading my nib file;
break;
case 1:
Loading another nib file;
break
default:
break
........
Before loading my nib file. It expects any one statement.
example
case 0:
NSLog(@"");
Loading Nib file....
My its expect the statement NSLog(@"");....... If i need not put NSLog... or any other statement its gives me error.....
I want to know why its like that.
© Stack Overflow or respective owner