Bo Master is a junior to internship students, as a software technology professional I seriously consider the way out, think to dry start low low Java than spend some money to choose iOS. I was also interested in iOS, although I couldn't catch up with the internet boom 08 years later, but the internet still grew steadily over time, and iOS development didn't have to pay an expensive developer account every year (that's what I learned later). The development of the Internet and a variety of preferential policies so that a large number of programmers have sprung up, Bo Master in this slightly share experience, and small partners together to encourage, hope and everyone to the pinnacle of life ah.
Back to the point, iOS development requires an Apple device, and of course you can also use Linux and PC VMS, black apples with OSX systems. Bloggers because college students have no money to buy mac book so with the virtual machine, but the friendship tip: Allocate memory must be greater than 4G, or you enter the system card like slow motion. Black apples need to determine whether their computer is supported, and to find a lot of drivers. The virtual machine usually a little card, and do not save the snapshot, otherwise it will not open, Bo Master because of the wrong point, and experiment once again, so the reload two times Mac. The specific installation tutorial please Baidu, bloggers will not explain this.
Say to the point, let us embark on the journey of object-c development.
Pre-Preparation1. Vmware11 Install the Mac OS X 10.11 Virtual machine (hit the Mac patch and then download the virtual machine image package, using the lazy install method. Replace the newly created virtual machine files directly with the configuration. ) 2. Installing VMware Tools, setting up Shared folders
(Allows the virtual machine and host to switch back and forth, set the resolution, can share files.) Specific operation to ask Niang) 3. Download the Xcode 7.1 dmg image. (It is recommended to use 7.2)
(Unzip and install, ready for preparation)
New Project1) Open Xcode and select Create a Project 2)
3)
4)
Then you can write the code in this. m file.
The following stickers I found from other people's blog Xcode commonly used shortcut key products AH
The Boolean type of OC is bool returns Yes NO
The string type of OC NSString
#import<Foundation/Foundation.h>intMainintargcConst Char*argv[]) {@autoreleasepool {//Insert code here ...BOOL T =YES; BOOL F= NO; NSString*str =@"Test"; NSLog (@"Hello, world!."); NSLog (@"%HHD%HHD", t,f); NSLog (@"%@", str); } return 0;}
Operation Result:
(object-c) Study notes (i)--development environment configuration and the difference from C language