Objective-C basic learning summary, objectivec Basics
1. (1) process orientation: an event-centric programming philosophy (2) Object-oriented: An Object-Oriented Programming philosophy 2. get and set are used to access and modify the attribute
IOS-get the controller of the current View
Use a classification, specifically:. H
# Import
@ Interface UIView (CurrentController)/** get the Controller object of the current View */-(UIViewController *) getCurrentViewController; @ end
IOS-get the ViewController displayed on the current screen
// Obtain the ViewController-(UIViewController *) getCurrentVC {UIViewController * result = nil; UIWindow * window = [[UIApplication sharedApplication] keyWindow]; if (window. windowLevel! =
IOS TextField with keyboard movement, iostextfield
This article introduces a simple and practical small method.
I think everyone should be familiar with some of the effects of login.
Today, we will introduce the implementation of TextField
IOS RunLoop 1. iosrunloop
A RunLoop is like a loop of its name.
RunLoop has multiple modes.
You can only execute one mode at a time.
Therefore, when using RunLoop, pay attention that the effect may not be what you want.
Here we use NSTimer to
[Strongly recommended] the king of XCODE plug-ins and the king of xcode plug-ins
There are many Xcode plug-ins, which are strongly recommended here. Because we can use this plug-in to install other plug-ins
1. Alcatraz plug-in.
Alcatraz is a
Several Methods for parsing iOS json: NSJSONSerialization, JSONKit, SBJson, TouchJson, and jsonkitsbjson
You can download related third-party class libraries from github.1. NSJSONSerialization
The Code is as follows:
-(Void) viewDidLoad {[super
IOS block, used as the callback function instead of the proxy, ios callback function
Recently, I am working on a video conference project, but what I want to talk about today is basically irrelevant to the video. Let's create a button in a view and
IOS-Automatic Layout code version (original) and ios-original layout codeIntroduction basic knowledge under certain circumstances we need to use autolayout so that we can associate the positions of views and views.
Horizontal: The minimum width of
Use of GCD-related functions
GCD
It is one of iOS multi-thread implementation solutions and is very common.
It is also known as a great central scheduler.
Is a solution proposed by Apple for multi-core parallel computing
1. One-time
Ios debugging skills
I. BreakPoint (normal BreakPoint)
When the program runs to the breakpoint, It is paused.
The value of the corresponding parameter can be seen below the debugging process.
2. Condition BreakPoint)
Set the breakpoint attributes to
Multithreading and scratch
What is a process before learning multithreading?
A process is an application running in the system.
Each process is independent, and each process runs in its dedicated and protected memory space.
You can use the
IOS network-simple introduction (I)-> third-party SDWebImage and iossdwebimage
First, we take the most commonly used UIImageView as an example to introduce the implementation principle:
1) UIImageView + WebCache: setImageWithURL: placeholderImage:
IOS compressed image size
Recently, I encountered a silly problem. When I took a picture in a project or selected an image from the album, I did not process it and directly uploaded the source image. As a result, when I looked at it in the list, the
IOS network analysis-(Introduction to third-party AFNetworking3.0 on November 11), iosafnetworking3.0
AFNetworking3.0 is the latest version. I was going to introduce it to 2.6, but I decided not to introduce it soon. Interested friends can check it
[Swift] iOS UICollectionView: Cell size calculation trap, uicollectionviewcell
Preface
Problems caused by unfamiliar APIs may occur if you take it for granted. Here we record the use of UICollectionView.
Statement You are welcome to repost, but
Only the first time you enter the navigation view and the first navigation View
Only when the program is run for the first time can the program be deleted and re-run.
I only show the last image.
First create a viewcontroller class
Set the Root
ViewController respondsToSelector error solution, mvcviewcontroller
Cause analysis: (analyze from others' blogs)A public class or a control provided by the system has a delegate method. When the container class that creates this public control has
In Xcode-ObjC, and Xcode-ObjC,
You need to use a third-party library when creating a project recently. The usage Wizard of this library shows that after adding this library, you need to add the-ObjC flag to Other Linker Flags under Xcode Build
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