iOS development in the summary of the tips, share to everyone!! (to be continued before the End)
Source: Internet
Author: User
<span id="Label3"></p><p><p>This is my tip when I'm writing a project or learning something or asking SOMEONE.</p></p><p><p>The original is written in the notebook above, or share to Everyone. May be very messy, feel that they are useful to take away, there are errors and omissions in the place also ask for advice to Correct. Not much nonsense to say come directly.</p></p><p><p>1. Three ways to monitor controls</p></p><p><p>1) AddTarget</p></p><p><p>2) Agent</p></p><p><p>3) Notice</p></p><p><p>2. uitextfiled (text Box) has a property:<span style="color: #000000;">clearbuttonmode</span> Select uitextfieldviewmodealways You can enter more than one character, on the right there is an X point to clear all, the user experience will be better.</p></p><pre><pre>Uitextfield *textfield =<span style="color: #000000;"></span>= uitextfieldviewmodealways;</pre></pre><p><p>3. To delegate the value of who passed to who, often confused children's shoes, you can think:</p></p><p><p>For Example: A is the delegate B is the agent, generally is the agent to take the value, the entrusted value, that is a->b, but also the children's shoes to remember a word: agent is often take things (value) of the party</p></p><p><p>4. In general, If you want to get rid of the system default methods, settings or controls, the first time you should think of the method is: inherit rewrite! (the Classic Example Is: Button)</p></p><p><p>5. When the cycle of death crashes, it usually falls apart. So. The next time you find this, you know. It should be immediately possible to determine the cycle of death, and then it is time to check the code inside the Loop.</p></p><p><p>6. When you want to use the write icon, you can search baidu: "icon engine", The 1th, 2 site is a lot of icons, the 1th is english, 2nd is Chinese.</p></p><p><p>7. oc, usually add something to the array, first to consider whether the east will be Nil.</p></p><p><p>8. When you want to rewrite certain methods, especially in the beginning of the view (such as viewwillappear), always add [super viewwillappear];</p></p><p><p>9. Generally want to use a control to indicate that there is a picture with Text--->uibutton.</p></p><p><p>10. We should write code at any time should go to---> good design patterns, code specifications, code structure to move closer and Consider.</p></p><p><p>11. Lazy Loading (delayed Loading) This thing is very important. I most often use an array as a property of a class when the Getter method does not take into account the problem of where the array should be initialized, because the array is initialized after the Getter.</p></p><p><p>(to be continued), for the time being written here, and some are not written Out. Write a good mess, need to tidy up-to make people understand. Because I almost could not read Haha.</p></p><p><p>iOS development in the summary of the tips, share to everyone!! (to be continued before the End)</p></p></span>
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