Whether using the mvc or mvvm architecture, we need to ensure that model changes can be synchronized to relevant components in a timely manner. Similar to the monthly Observer Model, kvo can be used in ios to accomplish such a thing, but every time
To put it short, thank you for your attention. This article has been written for a long time. I will continue to learn about ios. I will use 2 to 3 articles to learn some common controls on the iphone, including Image View, Text Field, Keyboard,
The input date string is in the format of @ "13:08:08"
-(NSDate *) dateFromString :( NSString *) dateString {
NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];
[DateFormatter setDateFormat: @ "yyyy-MM-dd HH: mm: ss"];
NSDate *
During project development, a big map can be dragged by pressing and sliding with one finger. The two fingers can be opened or closed to zoom in and out the map.
To achieve this function, you need to use the cocos2d-x multi-touch function.
The multi-
I have been using swift for several days. It is found that in addition to several basic types of conversions, some special numeric types need to be converted from "bridging" to "Objective-C ~
The Code is also very simple ~
Var numString = "1.0" var
Since the use of Objective C to develop Native iOS applications, many alternative iOS applications have been developed in other languages. For example, the following lists some of them:
PhoneGap, developed using HTML/JS
RubyMotion, using Ruby
1. tuples
Format variable or constant keyword tuples variable = (variable, variable ,...) Note: 1: The tuple variable is still a variable, but the expression is different from other variables.2: () The brackets can contain N
Before ios7, we developed two-dimensional code scanning or production, which must be developed using third-party open-source libraries.
Then, when upgraded to ios7, Apple provided the QR code scanning function in passbook, and the scanning speed was
To be honest, the sliding deletion Effect of UITableView cell is ugly before ios7, but after the flattening of ios, this sliding deletion is still very nice. It is also very easy to implement.
This effect is mainly implemented in the UITableView
1. Case study: Partition Table view with index function, 01
Figure 01
2. team_dictionary.plist
group A A1-South Africa A2-Mexico A3-Uruguay A4-France group B B1-Argentina B2-Nigeria B3-Korea B4-Greece group C C1
Traditionally, the first application in a new language will print "Hellow, Word". In Swift, you only need one line of code:
pringln("Hello, word")
If you have written c or object-c code, the Swift code looks very familiar, and a line of code can
I haven't been here for a long time. I am continuing to study the new language Swift!
Create Class (Overload effect)
// Create Class Create class MyClass {// Properties member variable init () {// Constructor} // Method member Method func doIt ()
NSLog must be used in development, but it is especially performance-consuming. Therefore, it must be removed after the product is released.
It is quite difficult to process NSLog in a large development project, so you can consider macro definition
IOS Performance Optimization Analysis
First, you must familiarize yourself with several concepts.
What is the difference between PNG and JPG?Png images have alpha channels, while jpeg images do not. Png lossless compression, jpeg allows you to
1. storyboard processing directly allows the controller to inherit the uitableview controller. Then, in the storyboard, the controller inherited from uiviewcontroller is killed, and a tableview controller is dragged to connect to the master
Cocoa coding specifications-preface use public APIs to develop a Cocoa framework, plug-in, or other executable targets. The naming and coding standards in these frameworks are different from general application development. Because you developed
Implement with Xib
Application Scenario: displays the list data and news lists of group buying websites (because the data cells displayed in this category are in the same format)
(1) The master controller file implements its own custom proxy in the
IOS-Modify the AFNetworking source file to receive text/plain
When using AFNetworking, you may encounter the following error:
{Status code: 200, headers {
"Content-Length" = 14;
"Content-Type" = "text/plain; charsets = UTF-8 ";
Date = "Thu, 22
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