Objective:That saturation is saturated, and that unsaturated is not saturated.A), the rapid development of mobile Internet in the past few years and the tide of Internet entrepreneurship, making IOS development a hot job. Because of the scarcity of iOS development in previous years and the high level of self-learning compared to other technologies (requiring Macs and iphones), and startups mostly using mobi
Afnetworking is a lightweight iOS network communications library, after the ASI class library is not updated after the developers have a good choice;
Afnetworking class Library Source code download and use tutorial: https://github.com/AFNetworking/AFNetworking
If you want to delve into the official documentation: http://afnetworking.github.com/AFNetworking/
The use of the Afnetworking class library in the open source China
The iOS application is that Xcode will optimize the PNG file so that the picture preview is not displayed. So how do you look at these optimized files?
The optimized action is done by the Pngcrush tool, and you can find it in Xcode. Pngcrush supports command line option-revert-iphone-optimizations.
This option enables you to undo optimizations that are made during Xcode compilation. So, to see the optimized file, you should first undo the optimizati
1. iOS offers two high quality graphics rendering methods: A. OpenGL es for rendering B.quartz,core Animation, Uikit for drawing
2. The OpenGL ES Framework is mainly applicable to game or high frame rate application development. A C-language based interface for creating 2D and 3D content.
Graphics system of Uikit
3. All the paints in iOS, regardless of OpenGL ES, Quartz, Uikit, or core Animation, occur i
Releasing objects in MRR is implemented through release or autorelease messages, which immediately frees reference count-1, sending autorelease messages to put objects in a memory-free pool for deferred release, and the object's reference count does not really change. Instead, a record is added to the memory-free pool until all objects in the pool are notified to send the release message and the reference count is actually reduced before the pool is destroyed.
Because it will delay the release
Passbook is a new feature of iOS 6 that can only be used in iphone and ipod Touch devices. It can help us manage the electronic Membership card, scorecard, coupons and so on that the merchant issues. This will have a far-reaching impact on future e-business. Merchants through the issue of membership cards, card, coupons and so on, improve interaction with consumers, attract more people to spend. Passbook was born to put all these "cards" and "coupons"
view, the creation of a cell is invoked. This logic doesn't seem to be a problem, but does it really matter?
When creating the call, we print the message using NSLog and print the address of the cell that was created. We find that if the amount of data is very large, the user scrolls back and forth within a short period of time, creates a lot of cell, opens up space, and if it's rolling back, by printing the address, we find that it doesn't reuse the cell that was created before, but instead r
A simple introduction to multiple controllers and navigation controllersOne, multiple controllers
An iOS app is rarely made up of only one controller, unless the app is incredibly simple. When there are multiple controllers in the app, we need to manage these controllers
When you have multiple view, you can use a large view to manage 1 or more small view, the controller is the same, with 1 controllers to manage other multiple controllers
For exampl
Objective
Have been watching Vue in recent months, and then try to implement certain components using only native Js+vue.
PC end Time Selection component This is the first implementation of the PC on the time selection, usually the mobile end is also doing, so I want to realize the mobile end of the time selector, the following share I realize the mobile end of the wheel effect time selector thinking and process. The entire component is built based on VUE-CLI.
Function
1. Time selection [ A.
The following example code gives you a detailed introduction to the common property methods for iOS UIView, as shown in the following code:
Uiview:uiresponder/** Initializes a UI control/(ID) initWithFrame by a frame: (CGRect) frame; YES: Can interact with the user @property (nonatomic,getter=isuserinteractionenabled) BOOL userinteractionenabled; A tag of the default is YES//control (the parent control can find the corresponding child co
MD5 code more secure. It is difficult to find the MD5 code that is long enough for the salt to be found.
Terminal code: $ echo-n ABC|OPENSSL MD5 to string ABC encryption,
Apple packs the MD5 encryption method, which is very convenient to use.
#import @interface Md5encrypt:nsobject//MD5 encryption/* Because MD5 encryption is irreversible and is used for verification *///32 bit lowercase + (N
Sstring *) Md5forlower32bate: (NSString *) str;
32-bit Uppercase + (NSString *) Md5forupper32ba
#include
Get Device Information Summary
1, get the information of the equipment
Uidevice *device = [[Uidevice alloc] int];
NSString *name = device.name; Gets the name of the device owner
nsstring *model = device.name;//Get device category
nsstring *type = Device.localizedmodel;//Get Localized version
NSString *systemname = device.systemname; Gets the currently running system
nsstring *systemversion = device.systemversion;//Gets the version of the current system
2, get the
Uievent is a collection of uitouch that is responsible for responding to touch events in iOS. The concept of a responder chain is also mentioned, in which all events have a first responder, and events can be passed down the responder chain.
Next is the Uicontrol object
Uicontrol is a subclass of UIView and, of course, a uiresponder subclass. Uicontrol are the parent class of controls such as UIButton, Uiswitch, and Uitextfield, which also contain pr
Objective
Rich Text Editor is different from the text editor, the domestic do relatively good such as Baidu's Ueditor and Kindeditor. But these two also have its disadvantage: the interface is too complex, not concise, UI design is also relatively backward, not lightweight, this article we will introduce how to use iOS to implement Rich text editor.
Effect of implementation
Solving ideas
Using WebView to load a local HTML file, the HTML internal
the written Jkencrypt Https://github.com/jukai9316/JKEncrypt.
The following 3DES implementations are resolved below, and then again, how to use Jkencrypt.
Note: The padding is different.
In the process of interacting with the background, because Java inside the use of pkcs5padding, and iOS only kccoptionpkcs7padding, so with kccoptionpkcs7padding | Kccoptionecbmode is equivalent to pkcs5padding.
The following is the implementation of 3DES 256 in
About the iOS modular development solution Online also has some introduction, but the actual implementation in the concrete instance but rarely see, plan to write system articles to introduce my understanding of the modular solution, which will contain some about decoupling, routing, encapsulation, private pod management, etc. And write an instance of the project put in git for open source [Jiamoduledemo], which now has some encapsulated functional mo
, translationtransform)}//Add a 3D effect to the button func buttontransformforpercent (percent:cgfloat) -> Catransform3d {var identity = catransform3didentity Identity.m34 = -1.0/1000 let angle = percent * C Gfloat (-M_PI) Let Rotationtransform = Catransform3drotate (identity, Angle, 1.0, 1.0, 0.0) return rotationtransfor m}
The above is the iOS in the right drawer 3D effect of the implementation of the example code, the effect is not very good,
) scalefactor = Widthfactor; Scale to fit height else scalefactor = heightfactor;
Scale to fit width scaledwidth= width * scalefactor;
Scaledheight = height * scalefactor; Center the image if (Widthfactor > Heightfactor) {thUmbnailpoint.y = (targetheight-scaledheight) * 0.5;
else if (Widthfactor
This UIImageJPEGRepresentation(image, 0.0), and UIImagePNGRepresentation(image); is 1 functional.This [sourceImage drawInRect:CGRectMake(0,0,targetWidth, targetHeight)] is the function of 2.
iOS friends know or hear about runtime, which is much like the reflection mechanism of Java , but the function is much better than the reflection of Java . By Runtime we can dynamically add attributes, member variables, methods , and read and write access to a class.
Introduction of runtime
Runtime short run time. OC is the run-time mechanism , that is, some of the mechanisms at run time, the most important is the message mechanism.
For the C langu
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.