| | |
| | | // Do any additional setup after loading the view. |
| | | |
| | | self.title = NSLocalizedString(@"device_modify_name_title", @"修改设备名称"); |
| | | |
| | | // self.deviceNameTextField.text = self.cameraInfo.deviceName; |
| | | self.deviceNameTextField.text = self.deviceInfo.deviceName; |
| | | // |
| | | // self.deviceNameTextField.leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, 30)]; |
| | | // self.deviceNameTextField.leftViewMode = UITextFieldViewModeAlways; |
| | |
| | | NSLog(@"error = %@",error); |
| | | if(!error) |
| | | { |
| | | // self.cameraInfo.deviceName = self.deviceNameTextField.text; |
| | | self.deviceInfo.deviceName = self.deviceNameTextField.text; |
| | | [self.navigationController popViewControllerAnimated:YES]; |
| | | } |
| | | }]; |