MindMap Gallery MacTK class motor design review
Regarding the mind map of the design review of TK motors, the design review of MacTK motors is a process of comprehensively evaluating the performance, reliability, cost and other requirements of the motor.
Edited at 2023-11-09 14:54:57El cáncer de pulmón es un tumor maligno que se origina en la mucosa bronquial o las glándulas de los pulmones. Es uno de los tumores malignos con mayor morbilidad y mortalidad y mayor amenaza para la salud y la vida humana.
La diabetes es una enfermedad crónica con hiperglucemia como signo principal. Es causada principalmente por una disminución en la secreción de insulina causada por una disfunción de las células de los islotes pancreáticos, o porque el cuerpo es insensible a la acción de la insulina (es decir, resistencia a la insulina), o ambas cosas. la glucosa en la sangre es ineficaz para ser utilizada y almacenada.
El sistema digestivo es uno de los nueve sistemas principales del cuerpo humano y es el principal responsable de la ingesta, digestión, absorción y excreción de los alimentos. Consta de dos partes principales: el tracto digestivo y las glándulas digestivas.
El cáncer de pulmón es un tumor maligno que se origina en la mucosa bronquial o las glándulas de los pulmones. Es uno de los tumores malignos con mayor morbilidad y mortalidad y mayor amenaza para la salud y la vida humana.
La diabetes es una enfermedad crónica con hiperglucemia como signo principal. Es causada principalmente por una disminución en la secreción de insulina causada por una disfunción de las células de los islotes pancreáticos, o porque el cuerpo es insensible a la acción de la insulina (es decir, resistencia a la insulina), o ambas cosas. la glucosa en la sangre es ineficaz para ser utilizada y almacenada.
El sistema digestivo es uno de los nueve sistemas principales del cuerpo humano y es el principal responsable de la ingesta, digestión, absorción y excreción de los alimentos. Consta de dos partes principales: el tracto digestivo y las glándulas digestivas.
Mac
0420
Objective-C
day01
OC basic grammar
#import directive
Instructions to introduce library functions
Yes #include enhanced version
Use precompilation directives to prevent repeated inclusion of header files
#ifndef #define
#endif
Using #import, you can prevent repeated inclusion of header files even without precompilation instructions.
Like other precompiled directives, such as the #define macro definition, which replaces a string, this import copies the code into the file.
The same file, no matter how many times it is included with import, will only be treated once.
If the #include directive is used alone, it may cause repeated inclusion. Precompilation commands must be used to prevent it.
Introducing library functions
#import <stdio.h>
Sharp quotes refer to system files
File search order
Compiler Folder -> System Folder -> Search failed
#import "aaa.h"
Double quotes quote user files
File search order
Current folder -> Compiler folder -> System folder -> Search failed
The concept of framework
Encapsulate pre-prepared functional modules in classes. The collection of these classes is called a framework.
Similar to the function library in C language
Foundation framework
Provides the most basic functions of OC
autoreleasepool framework
autorelease pool
OC Completion Learning Route
OC Overview
Object-oriented features in OC
Object-oriented in OC
Memory management
Categories, protocols, extensions, and delegation models in OC
Blocks
Introduction to Foundation framework
File operations
copy
Object archive
KVC/KVO
Use of NSLog function
NSLog is an enhanced version of printf
simple string
NSString *str =@"Hello hello";
// str is the variable name, and the variable name stores the string address
NSLog(@"str ===== %p",str);
What is printed is the address
NSLog(@"str ===== %@ ",str);
The actual string printed
In addition to printing with variables above, you can also print constants directly like this
NSLog(@"What I want to print is %@",@"Hello Hello")
NS prefix
There is no concept of namespace. Class names in OC must be globally unique.
Similar functions in different frameworks may lead to duplication of class names. ObjectiveC stipulates that class names must have a prefix.
The use of comments and @ symbols in OC
How to use @
@"This is OC"
Convert C language string to OC string
identifier
Most identifiers in OC begin with @
Comments in OC
Same as C language
Functions to access OC source files and C source files
1. Create C file
2. Define a function in the C file
3. Declaration in C header file
extern void testCShow();
4. Reference the import above header file in OC code
5. You can start using it in OC code
Differentiated learning of OC and C
Data type comparison
C language
basic type
integer
character
real type
structure
array
Structure
Subtopic 3
enumerate
pointer
empty typevoid
typedef
Data types in OC
Contains the above C language types
newly added
Boolean type BOOL
BLOCK type
code block data type
pointer data type
class class
ID type
dynamic object type
special type
SEL/nil
Variable definitions
Variable definitions in C language can be used directly in OC
The flow control statements are exactly the same
for
while
do while
if
switch
New exception capture in OC
@try...@catch...@finally
@try { //Possible error code NSLog(@"try"); } @catch (NSException *exception) { //In case of error, the remedial code NSLog(@"catch"); } @finally { // NSLog(@"finally") is executed regardless of error or not; }
object-oriented
Four main characteristics
abstraction
Encapsulation
Polymorphism
inheritance
UI basics
day01
introduction to apple
IOS framework
UIKit
user interface
QuartzCore
animation effects
CoreGraphics
2D drawing
MapKit
Built-in map
Don't reinvent the wheel
AVFoundation
audio video
object-oriented
emulator
Be familiar with common operations in the simulator
Create iOS project
Main.storyBoard
LaunchScreen.storyBoard
startup screen
Used to build user interface
There is an AutoLayout concept
Used to maintain normal display of the program in various versions
How to resize storyBoard
Press the view circle button above
Click AttributeInspector to select size
For example, in iPhone6 it is 4.7inch
Calculator interface
Use AI's keyboardType to adjust the pop-up keyboard in Text
Only the numeric keyboard pops up
The relationship between ViewController and View
The code is written in viewController
The function is to manage the view
There is a view in ViewController
It can be seen from the storyBoard
It can also be seen from the header file code of ViewController
The two classes View and ViewController themselves are not related.
View is used to manage components that can be seen together
Inherited from UIView and UIViewController respectively
There is an object of type UIView in UIViewController
In addition, the application entry is in main.m in supportFile.
Connect button to method
Define methods in advance
- (IBAction)doSomething { NSLog(@"have fun");}
connection method
method 1
Press the control key on the keyboard and drag the button to the ViewController. A method will pop up. Select the connection.
Method 2
Right-click the button and select touchupinside
dosomething function pointing to header h file
Fix keyboard issues
Sometimes the keyboard does not appear on the simulator
Click on the Hardware selection on the menu
Problems with method connection
1. If a method is deleted in the code, the corresponding connection must also be deleted.
When deleting method code, confirm whether there is a corresponding connection in use
Otherwise a runtime error occurs
2. If a method only needs to be triggered by clicking a button, it does not need to be called elsewhere.
Just need to implement it in the .m file
No need to declare in .h file
Control wiring
The goal is to connect the text in Text to the variables of the code
For controls (properties) that only need to be used in ViewController, we generally declare them in class extensions
All UI controls use weak, because UI controls need to be wired, and the IBOutlet label needs to be added.
Then use dragging to connect
In addition, there is no need to implement defined properties, but directly drag the control to the class extension by pressing the control line. An information box will pop up and after selection, an attribute will be automatically generated.
Recycle keyboard values
NSLog(@"%@",self.filed1.text);
Display the text in the text box in the console
Take the value from Text and convert it to int
int number1 = [self.filed1.text intValue];
Convert the calculation result int value to String and display it in Label
self.sumlable.text = [NSString stringWithFormat:@"%d",sum];
Use %p to print the address
extern meaning
0421
Stanford IOS Video
Overview
premise
Learned object-oriented
iOS is a completely object-oriented system
IOS structure
CocoaTouch
MultiTouch
WebView
The part where Cameraなど interacts with users
Media
Audio
PDF/JPEG
Videoなど
CoreServices
Collection
CoreLocation
FIleAccess
SQLite
NetServicesなど
CoreOS
OSX Kernel
FileSystem
Socketsなど
Swift and OC
Essentially the two languages are very similar
MVC design pattern