This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString* result = [string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIViewController *vc = self.childViewControllers[3]; // or whatever | |
[vc willMoveToParentViewController:nil]; | |
[vc.view removeFromSuperview]; | |
[vc removeFromParentViewController]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"identifier"]; // or whatever | |
[self addChildViewController:controller]; | |
controller.view.frame = CGRectMake(0, 0, 100, 100); // or whatever | |
[self.view addSubview:controller.view]; | |
[controller didMoveToParentViewController:self]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am anknetau on github. | |
* I am ank (https://keybase.io/ank) on keybase. | |
* I have a public key whose fingerprint is 9534 E157 8B32 46F0 9C8F 8B2F 4EBE 7B2D 30EA E859 | |
To claim this, I am signing this object: |