I have been trying to test iOS development for a long time. Due to the development environment restrictions, I have been confined to theories and virtual machines. Recently, I have started my MacBook Pro and I have come to try it. I have also
I want to use the Baidu map API for a demo. The following is my entire process. I hope to provide some reference for you;
First, open the following URL and carefully read the iOS development guide for mobile platform APIs.
I. When using C ++ for development, we can easily add new methods to existing classes using inheritance combinations to expand existing classes. However, in object-C, it is more convenient to add new methods to existing classes. Therefore, we need
The system architecture of iOS is divided into four layers: Core OS layer, Core Services layer, and Media layer) and Cocoa Touch layer ). The following figure shows the IOS system structure.
IOS Structure
1. Core OS is the Core operating system
UIWindow and UIViewController are written earlier. They are all some frameworks. The framework must be filled with specific views to form our applications. In mobile application development, the UI occupies a large part, the most basic UI
In the previous iOS study-xml data parsing (9), we introduced xml data parsing. This article briefly introduces Json data parsing. JSON is JavaScript Object Natation. It is a lightweight data exchange format and is suitable for server-to-client
The SQLite API originally generated in IOS is quite unfriendly to use and inconvenient to use. As a result, there is a series of SQLite API encapsulation library, such as fmdb, plausibledatabase, sqlitepersistentobjects, fmdb
1. First, go to idea (./Downloads). After the Download is complete, directly pressurize the Download folder:
2. Open xcode to create Empty-based Application,
The created Project is saved on the desktop. By default, there are four Frameworks
In IOS development, we often use networks. networks are indispensable. When there are network connections and no network connections, different processing and resumable data transfer are inseparable from network detection. Today, I made a simple
Struct sockaddr_in {_ Uint8_tSin_len;Sa_family_tSin_family;In_port_tSin_port;Struct in_addr sin_addr;Char sin_zero [8];};
Sin_family refers to the protocol family. It can only be af_inet in socket programming.Sin_port storage port number (in
Core Foundation frameworkThe Core Foundation framework is a set of C language interfaces that provide basic data management and service functions for iOS applications. The following lists the data and services that the Framework supports for
The following content is translated from:
Http://code.google.com/p/cocoaasyncsocket/
Cocoaasyncsocket supports TCP and UDP. Where:
The asyncsocket class supports TCP
Asyncudpsocket supports UDP
AsyncSockeT is the TCP/IP Socket network library
When you input a letter in seachBar, you only select the searchBar with the mouse,
The terminal output is as follows: (shouldBeginEditing is called at this time, and then didBeginEditing is called ,)
When you want to select UISearchBar, the
When using UIBUtton, we sometimes need to set pictures and text at the same time. The following code is for reference only:
UIButton * _ backButton = [UIButtonButtonWithType: UIButtonTypeCustom];
[_ BackButton setFrame: CGRectMake (12,8, 64, 28)];
[
In May, I began to study the in-app purchasing technology on the iOS platform. In the past, if you want to make a paid application, you need to make a Lite simple version. Before purchasing the product, you can use the Lite version to experience the
Method 1: Use nstimer
It mainly uses the scheduledtimerwithtimeinterval method of nstimer to execute the timefiremethod function every second. timefiremethod performs some countdown operations. After timer is completed, it is OK to give invalidate.
It looks quite simple. I added a tap gesture to uitableview and responded to a method to exit the keyboard. So I had the following code:
// Added the tap gesture and clicked to exit the keyboard.
Uitapgesturerecognizer * tapgesture =
This problem has actually been encountered several times, and many things have not been carefully studied. The solution is also very violent and directly added for 8 hours.
After debugging, I found that this is not the case.
NSDate * nowDate =
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