You can do this:
if ( self.mySwitch.on )
// do something
Here I assume mySwitch is an instance of UISwitch. It is a good idea to store switch value to NSUserDefaults so that you can retrieve it from another view.
This is how you store the value:
NSString *switchValue;
if ( self.mySwitch.on )
switchValue = @"YES";
else
switchValue = @"NO";
[[NSUserDefaults standardUserDefaults] setObject:switchValue forKey:@"switchValue"];
[[NSUserDefaults standardUserDefaults] synchronize];
This is how you retrieve the value:
BOOL switchState = [[[NSUserDefaults standardUserDefaults] objectForKey:@"switchValue"] boolValue];