The basic principle is to describe the layer of the uiview to the graphic context. UiviewCodeAs follows:
1 uiview global photo taking
-(Uiimage *) screenimage :( uiview *) view {uiimage * screenimage; uigraphicsbeginimagecontext (view. frame. size)
(The premise is that applicationloader has been installed)
1. Open xcode, choose product> scheme> editscheme, find archive, select iosdevice as the top device, and select release in buildconfiguration.
2. Select iosdevice and clean for the project.
3
In iOS development learning, I often cannot figure out the iOS development mode. Today we will make a simple summary and discussion ~
(1) proxy Mode
Application Scenario: when some functions of a class need to be implemented by another class, but
You can use Openurl to open some programs, not just browsers. We will demonstrate these applications in the following example:Open a browserOpen Google MapOpen emailDialerText messaging programOpen appstoreLaunch Google MapsThe URL format to
[Reproduced from Camp David education: Workshop /]
Common iOS game development tools and sdks
2d game development framework
Cocos2d-iPhone, iOS platform's most popular open source 2D game engine, contains two major versions: 0.9x
This article is transferred from the network, the original address
Memory usage is critical during iPhone development. Not only should we allocate and use the memory reasonably, but we should also pay attention to the memory leakage problem, because
In the previous two articles, I introduced how to obtain the network status and sock. At this point, I have a little understanding about socket. Next I will introduce
Scnetworkreachability applications. In iOS, The systemconfiguration framework
1. When you use instruments to debug performance, the targetFailed to run: Remote exception encountered: failed to get PID xxx
Solution:When you change the release certificate to the certificate for development, xcode4 automatically switches to the
1. Adapt to 4 inch screen adaptation.
To adapt to the 4 inch screen, the system creates a default-568h@2x.png image and identifies whether the system supports the 4 inch screen based on the resource. As for other resources, xxx-568h.jpg is not
What is notification?
In my personal understanding, a person is registered as a member in a department, that is, the registration mentioned below is called a listener. Let the listener listen to an event for you. When the listener listens to an
When we first came into contact with Quertz 2D, it was important that the drawing was performed in the context of the drawing. Each view has an associated context.
Therefore, if you draw a graph in a view, we need to retrieve the current
Ui update operations in IOS are actually the same as those in Android. They are not time-consuming operations in the main thread. Therefore, you need to enable new threads to perform these operations, to avoid blocking the main thread. After the
1. analogy
When you are a beginner in Ios development, you should first understand the environment in which the developed applications are stored. Just like switching to a company as a code farmer, you must first understand the various departments
Getting started with the official website: http://open.weixin.qq.com/document/gettingstart/ios /;
In fact, it is already very detailed. The following are my notes:
1. if "URL scheme" is not added to the Application id you have registered, "Return (
IOS MFMessageComposeViewController can be used to send text messages.
Usage:
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];picker.messageComposeDelegate = self;picker.recipients = [NSArray arrayWithObjects:@"
To complete communication with the IOS client, you must set the mode and padding attributes of the RijndaelManaged class instance in the AES-side encryption program. The former needs to be set to CipherMode. ECB, and the latter needs to communicate
Document directory
Select a project, TARGETS, and click the plus sign to add two frameworks.
It is easier to use maps on iOS than Android. You only need to create a MKMapView and addSubView. The following figure shows the implementation result:
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service