I hereby claim:
- I am xgjames on github.
- I am xgjames (https://keybase.io/xgjames) on keybase.
- I have a public key whose fingerprint is ECE0 6A5E C6FA 4B0E ED24 E0EE 007F BEC8 D45A C09E
To claim this, I am signing this object:
// add child view | |
UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"]; | |
[self addChildViewController:controller]; | |
controller.view.frame = CGRectMake(0, 44, 320, 320); | |
[self.view addSubview:controller.view]; | |
[controller didMoveToParentViewController:self]; | |
// remove child view | |
UIViewController *vc = [self.childViewControllers lastObject]; | |
[vc.view removeFromSuperview]; |
I hereby claim:
To claim this, I am signing this object:
NSPredicate *nameRegex = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", @"^[\u4e00-\u9fa5]+$"];
if (![nameRegex evaluateWithObject:name]) {
NSLog(@"姓名栏有非中文字符");
return;
}
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |