|
|
|
iOS - Switch On/Off value save to database in iphone/ios |
|
|
|
|
|
|
|
Local database or Web Server ?
|
|
|
|
|
Date :
2013-08-13 16:42:27 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Hi,sathish
you can use event "Value Changed" for manage action
Code (Objective-C)
-(void)valueChange:(id)sender
{
UISwitch *control = (UISwitch *)sender;
if (control.isOn) {
NSLog(@"save to database");
}else{
NSLog(@"do something");
}
}
|
|
|
|
|
Date :
2013-08-13 16:43:43 |
By :
j4kkapongz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks. web server
|
ประวัติการแก้ไข 2013-08-14 12:24:35
|
|
|
|
Date :
2013-08-14 11:41:41 |
By :
vishwa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ok thanks mr.win
|
|
|
|
|
Date :
2013-08-14 16:25:53 |
By :
vishwa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|