设置键盘无色和状态栏风火轮、屏幕截图

1.设置键盘为无色

textField.keyboardAppearance =

UIKeyboardAppearanceAlert;

2.设置状态栏网络风火轮是否显示

[UIApplication

sharedApplication].networkActivityIndicatorVisible==NO

3.截屏图片

CGSizeMake(200,400)UIGraphicsBeginImageContext(CGSizeMake(200,400));

[self.view.layer

renderInContext:UIGraphicsGetCurrentContext()];

UIImage *aImage =

UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

imageData = UIImagePNGRepresentation(aImage);

原文地址:https://www.cnblogs.com/CJH5209/p/6072134.html