One, environment installation, software Installation1, download and install Java JDK for Mac, can download from Oracle official website (but the general Oracle is the latest version), or from the Apple Developer website, I downloaded from the Apple website javaforosx.dmg, installed.2, download install PAROS, open, run Paros.jar file can appear Paros interface.Second, set the parameters and use1. Set up Mac and run program iphone in Unified Unlimited network2, set the PAROS parameter: Open paros,
: (UIImage *) image withwidth: (cgfloat) width{UIImage *newimage;Determine if the size of the picture is larger than the width of the screen let it compressif (Image.size.width > width) {Start compressing picturesCgsize size = image.size;Uigraphicsbeginimagecontext (Cgsizemake (width, Width * size.height/size.width));[Image drawinrect:cgrectmake (0, 0, Width, Width * size.height/size.width)];NewImage = Uigraphicsgetimagefromcurrentimagecontext ();Uigraphicsendimagecontext ();// }return newImage
=SGNetworkStatusUkonow;break;case2:status=SGNetworkStatus3G;break;case3:status=SGNetworkStatus4G;break;case5:status=SGNetworkStatusWifi;break;default:status=SGNetworkStatusUkonow;break;}}returnstatus;}
The good news is that even if the status bar is hidden, judgment still works!Other detailsBy default, host for ' www.baidu.com ', do not spray me, not to Baidu advertising, but because Baidu is really only suitable to judge whether there is a net, because the response is really fast. Of co
First, common tools:1) AlfredAlfred3.2 Mac hack Document: http://www.sdifen.com/alfred32.htmlCommon settings and operations: https://www.jianshu.com/p/e9f3352c785fAlfred supports the ITerm2 script:On Alfred_script (q)If Application "ITerm2" is running or application "ITerm" was running thenRun Script "On run {q}Tell application ": Applications:iTerm.app"ActivateTrySelect First windowSet Onlywindow to FalseOn ErrorCreate window with default profileSelect First windowSet Onlywindow to TrueEnd TryT
Class extension CHImage1, generating a picture from color/ * * Create a picture from color @param color Uicolor type @return A uiimage picture * /+ (UIImage *) Createimagewithcolor: (Uicolor *) Color {cgrect rect= CGRectMake (0.0f,0.0f,1.0f,1.0f);//1 wide, it's enough to have a value.Uigraphicsbeginimagecontext (rect.size);//Open a context within this rangeCgcontextref context =Uigraphicsgetcurrentcontext (); Cgcontextsetfillcolorwithcolor (context, [color Cgcolor]);//gets the color Uicolor i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.