This method link a toggle function to change between lanscape to protrait
if(UIInterfaceOrientationIsPortrait(self.interfaceOrientation)){ [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight]; }else{ [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait]; }
The simple way to create the new object with class name
id *object = [[NSClassFromString(@"MyClassName") alloc] init];
see also
NSGetSizeAndAlignment NSClassFromString NSStringFromClass NSSelectorFromString NSStringFromSelector NSStringFromProtocol NSProtocolFromString
1. import font into xcode project 2. add UIAppFonts properties into info.plist with your file name of your font eg ‘filename.tlf’ 3. Use the font name like iOS font system
UIFont *font = [UIFont fontWithName: @"Font Name" size: 60]; _textLabel.font = font;