IOS development, knowledge point summary, macro definition summary commonly used in ios development, and ios Summary

Source: Internet
Author: User
Tags sodium

IOS development, knowledge point summary, macro definition summary commonly used in ios development, and ios Summary

For IOS development, you can jump from an application to open a webpage in a browser:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.oatos.com/bbs/"]];

Overwrite the entire cell with a Button and add an action

cell.accessoryType = UITableViewCellAccessoryNone;                UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0.0, 0.0, cell.contentView.frame.size.width, 54.0)];        btn.autoresizingMask = UIViewAutoresizingFlexibleWidth;        btn.backgroundColor = COLOR(243.0, 89.0, 31.0, 1.0);        btn.tag = 1003;        NSString *title = nil;#ifndef appstore        title = NSLocalizedString(@"Pad_setting_exitBtnTitle", nil);#else        title = NSLocalizedString(@"Pad_setting_logoutBtnTitle", nil);#endif        [btn setBackgroundImage:[UIImage imageNamed:@"bgBtnLogoutNormal.png"] forState:UIControlStateNormal];        [btn setBackgroundImage:[UIImage imageNamed:@"bgBtnLogoutHover.png"] forState:UIControlStateHighlighted];        [btn setTitle:title forState:UIControlStateNormal];        btn.titleLabel.font = [UIFont boldSystemFontOfSize:20.0];        [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];        [btn addTarget:self action:@selector(loginOuBtnClicked:) forControlEvents:UIControlEventTouchUpInside];                [cell.contentView addSubview:btn];        cell.selectionStyle = UITableViewCellSelectionStyleNone;

Common macro definitions

#define IOS_VERSION  [[UIDevice currentDevice] deviceVersion]#define kDeviceAgent [[UIDevice currentDevice] deviceAgent]#define IsiOS7Later        !(IOS_VERSION < 7.0)#define Is4Inch            [OatosUtils is4InchScreen]


#define COLOR(R,G,B,A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


#define Size(w, h)                          CGSizeMake(w, h)#define Point(x, y)                         CGPointMake(x, y)#define Rect(x, y, w, h)                    CGRectMake(x, y, w, h)#define ViewWidth(v)                        v.frame.size.width#define ViewHeight(v)                       (IsiOS7Later ? v.frame.size.height : v.frame.size.height - StatusBarHeight)#define ViewX(v)                            v.frame.origin.x#define ViewY(v)                            v.frame.origin.y#define ViewRect(v)                         Rect(ViewX(v), ViewY(v), ViewWidth(v), ViewHeight(v))#define SelfViewHeight                      self.view.bounds.size.height


#define kDeviceScreenH                  [[UIScreen mainScreen] bounds].size.height#define kDeviceScreenW                  [[UIScreen mainScreen] bounds].size.width#define kAppMainScreenFrameWidth        [[UIScreen mainScreen] applicationFrame].size.width#define kAppMainScreenFrameHeight       [[UIScreen mainScreen] applicationFrame].size.height

# Define StatusBarHeight [UIApplication sharedApplication]. statusBarFrame. size. height # define kHeightStatusAndNav (IsiOS7Later? 64: 44) // The overall height of the status bar and navigation bar # used after define kPadHeightNavForPopView 44/3.4. The mechanism after reconstruction is different (related to the layout of the pop-up layer) # define kStatusBarFix (IsiOS7Later? 20: 0) // Status Bar Height # define kPadHeightStatusAndNav (IsiOS7Later? 64: 0) // The overall height of the status bar and navigation bar # define kPadNaviBarHeight (IsiOS7Later? 54366f: 0) // The height of the navigation bar without the status bar of pad # define kPadBottomBarHeight 60366f # define kPadHeightNav (IsiOS7Later? 44: 0)

Conclusion: In the code, try not to use dead data. Otherwise, version adaptation and future optimization will be very painful. You can also use macro definitions to simplify the code. At present, I only understand so much that I hope to have a better understanding of it in the future. Although this is only a small foundation, it is also a good programming habit, a good start.


Summary of junior chemistry knowledge points

I. colors of common chemicals in Junior High School
(1) solid color
1. Red solid: copper, iron oxide
2. Green solid: basic copper carbonate
3. Blue solids: copper hydroxide and Copper Sulfate Crystals
4. Purple-black solid: potassium permanganate
5. Pale yellow solids: Sulfur
6. colorless solids: Ice, dry ice, and diamond
7. silver-white solid: Silver, iron, magnesium, aluminum, mercury and other metals
8. Black solids: iron powder, charcoal, copper oxide, manganese dioxide, iron oxide, (carbon black, activated carbon)
9. Brown Solid: iron hydroxide
10. White solid: sodium chloride, sodium carbonate, sodium hydroxide, calcium hydroxide, calcium carbonate, calcium oxide, copper sulfate, phosphorus pentoxide, magnesium oxide
(2) Liquid color
11. colorless liquid: Water and hydrogen peroxide
12. blue solution: copper sulfate solution, copper chloride solution, Copper Nitrate Solution
13. Light green solution: ferrous sulfate solution, ferrous chloride solution, ferrous nitrate solution
14. Yellow solution: iron sulfate solution, iron chloride solution, and iron nitrate solution
15. Violet solution: Potassium Permanganate Solution
16. Purple solution: shirui Solution
(3) gas color
17. Brown gases: Nitrogen Dioxide
18. yellow and green gases: chlorine
19. colorless gases: oxygen, nitrogen, hydrogen, carbon dioxide, carbon monoxide, sulfur dioxide, hydrogen chloride and other gases.
Ii. Junior high school chemistry 3
1. Three major chemical techniques in ancient China: Papermaking, making gunpowder, and burning porcelain.
2. Three types of oxidation reactions: explosion, combustion, and slow oxidation.
3. Three particles that constitute a substance: molecules, atoms, and ions.
4. uncharged particles: molecules, atoms, and neutron.
5. material composition and composition:
(1) carbon dioxide is composed of carbon and oxygen;
(2) carbon dioxide is composed of carbon dioxide molecules;
(3) A carbon dioxide molecule is composed of a carbon atom and an oxygen atom.
6. Three kinds of particles that constitute an atom: Proton, neutron, and electron.
7. Three reasons for water pollution:
(1) Industrial "Three Wastes" arbitrary emissions,
(2) Arbitrary discharge of domestic sewage
(3) arbitrary application of pesticides and fertilizers
8. Three Methods for gas collection: drainage method (gas not suitable for water) and upward air discharge method (gas with higher density than air ), downward air discharge (gas with lower density than air ).
9. The Three Laws of conservation of mass do not change: the types of atoms remain unchanged, the number of atoms remains unchanged, and the atomic mass remains unchanged.
10. Three Methods for changing unsaturated solution into saturated solution: Increase the solutes, decrease the solvent, and change the temperature (increase or decrease ).
11. Three conditions for the occurrence of a complex decomposition reaction: water, gas, or precipitation
12. Three major chemical fertilizers: N, P, and K
13. Three gas pollutants discharged into the air: carbon monoxide, nitrogen oxides, and sulfur oxides.
14. Combustion of white light material: magnesium, charcoal, candle.
15. Flammable and reducing substances: hydrogen, carbon monoxide, and carbon.
16. Three flammable gases are: hydrogen (ideal), carbon monoxide (toxic), and methane (commonly used ).
17. Three chemical properties of CO: flammability, reduction, and toxicity.
18. Three major mineral fuels: coal, oil, and natural gas. (ALL is a mixture)
19. Three kinds of black metals: iron, manganese, and chrome.
20. Three oxides of iron: ferrous oxide, iron oxide, and iron oxide.
21. Three oxides of ironmaking: iron ore, coke, and limestone.
22. Three common strong acids: hydrochloric acid, sulfuric acid, and nitric acid.
23. Three Characteristics of concentrated sulfuric acid: water absorption, dehydration, and strong oxidizing ability.
24. Three Common examples of sodium hydroxide: caustic soda, caustic soda, and caustic soda.
25. Three kinds of oxides formed by heat decomposition of basic copper carbonate: copper oxide, water (hydrogen oxide), and carbon dioxide.
26. Three kinds of substances that cannot be used in laboratory production of CO2: nitric acid, concentrated sulfuric acid, and sodium carbonate.
27. Three flames of alcohol lamp: inner flame, outer flame, and flame heart.
28. alcohol lamp is prohibited: It is prohibited to add alcohol to the burning lamp. It is prohibited to use alcohol lamp to ignite another alcohol lamp.
29. Three roles of Glass Rods in crude salt purification: stirring, drainage, and transfer
30. Three Factors in liquid Filtration: (1) when the filtrate is dumped, the beaker is close to the glass rod. (2) The glass rod is light on one end of the three-layer filter paper. (3) bottom of the funnel ...... remaining full text>
Wang Dagang [authoritative expert]

Biological knowledge points

Required
Chapter 1: material basis of life
1. There are more than 20 chemical elements in cells. The main types of cells are the same, and the content varies greatly. The elements with a content larger than one thousandth of each other are a large number of elements (9 types ); the main elements (6 types) account for 97% of the total number of cells;
(1) Ca: the human body may suffer from osteoporosis. Low levels of Ca 2 in the blood may cause convulsions. High levels of Ca 2 may cause convulsions. The Ca 2 + in the blood promotes blood coagulation. If the Ca 2 + in the blood is removed with sodium citrate or sodium oxalate, the blood will not be solidified. Plants are reusable elements. Once lacking, the young tissue will be hurt.
②. Fe: the components of hemoglobin, which may suffer from anemia. In plants, elements that cannot be reused are lacking, and young tissues are harmed.
③ Mg: Components of the chlorophyll. The activator of many enzymes. When the plant lacks magnesium, the old leaves are prone to ye Mai loss of green.
④. B: it promotes pollen germination and pollen tube elongation. If there is a lack of plants, there will be flowers.
⑤. I: The components of thyroid hormones. If a child lacks thyroid hormones, the child will suffer from dull state, and the adult will suffer from local hyperthyroidism.
6. K: When the potassium content is low, myocardial automatic rhythm is abnormal, leading to arrhythmia. In plants involved in organic synthesis and transportation.
7. N: N is an essential element of chlorophyll, protein, nucleic acid, and various enzymes. N compounds in plants are unstable or soluble in water. Therefore, N can be freely moved in plants. If N is absent, the young leaves can absorb N to the old leaves, leading to the yellow of the old leaves. N is a chemical element that may easily cause the water ecosystem to become a nutrient. In the water ecosystem, excessive combinations of N and P will lead to the exception of nutrients, in the fresh water ecosystem, the nutrients are called "water bloom", and the nutrients in the marine ecosystem are called "Red Tides ". The lack of N in animals actually affects the growth and development of animals.
P: P is an essential element in the composition of lecithin, nucleic acid, ATP, and fe. The absence of P in plants affects DNA replication and RNA Transcription, thus affecting plant growth and development. P is also involved in the energy transfer process of photosynthesis and respiration in plants because ATP and ADP both contain phosphoric acid. P is also an element that may easily cause water-related ecosystems to become rich.
Zinc and Zn are the components of some enzymes and the activation centers of enzymes.
2. The biological world is unified with the natural world: the chemical elements of organisms can be found in the natural world. None of them are unique in the biological world;
The consistency between biological and non-biological: the chemical elements of an organism differ greatly in the content of the organism and the inorganic nature. The whole biological world has uniformity in the following aspects: ①. They all have the basic characteristics of biology. ②. They all share a set of codons (not to mention: they all have cell structures and all use DNA as the genetic material, breathing is required)
3. The main components of protein are CHON, some important proteins have PS, some special proteins also contain Fe, I, and so on. The latter two are trace elements.
4. Cholesterol and vitamin D can be absorbed from food or synthesized in the human body. Sex Hormones can be absorbed from the digestive tract to maintain its biological activity.
Chapter 2: basic unit of life activities
1. Mature red blood cells have no cell nucleus and organelle, so they can no longer breathe and synthesize proteins.
2. After the lymphocytes are stimulated by the antigen, the cell cycle becomes short, and the activities of the rDNA are enhanced (synthetic antibodies and lymphatic factors). The fertilized eggs of the frog start from the fourth split, and the length of the cell cycle begins to change.
3. Characteristics of cancer cells: The cells can be split infinitely, the morphological structure of the cells changes (spherical), the cell membrane surface GP decreases, the adhesion between cells decreases, and the cells can move.
4. All proteins are synthesized on the polybs, but not all enzymes are synthesized on the polybs.
5. The cell nucleus is the control center of Cell Metabolism and genetic properties.
6. Characteristics of aging cells: (material changes) decreased moisture and Pigment Accumulation in cells; (structural changes) decreased cell volume, increased cell nucleus volume, enhanced staining, and change of membrane permeability; (metabolic changes) activity decreased and respiration slowed down.
7. doubling or halving the DNA content in a cell is due to DNA replication or cell division; doubling or halving the DNA content on a chromosome is due to DN ...... the remaining full text>

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.