iOS notes, development experience Summary "continuous update"

Source: Internet
Author: User

1. Set Navigationbar background color difference,

Reason: If the simple setting of the background color also has the effect of Gaussian blur, the solid color Gaussian blur after the equivalent of a solid color 70% (guess) transparent processing, but anyway is the color difference

Workaround One:

Self.navigationController.navigationBar.translucent = no;//Bar blur effect, default is Yes

Method Two:

Through the picture method

[Self.navigationController.navigationBar setbackgroundimage:[uiimage imagenamed:@ "Navigation_backgroundimage"] Forbarmetrics:uibarmetricsdefault];

2. Uitextfield with rounded border BorderStyle and end Clear button

You cannot set the height of rounded border style directly in storyboard , change to non-rounded, and then add the following code to the code

Textfiled.borderstyle = Uitextborderstyleroundedrect. Attributedtextfield can set indent, set indent

3. iOS input box does not display the cursor, because the cursor default color display does not come out Textfield.tintcolor=[uicolor Bluecolor];

4. after iOS8.0, access to the mobile phone GPS needs to add the Nslocationalwaysusagedescription field in Info.plist andcall "Self" in the code. Locationmanager requestalwaysauthorization];

5. on ios7,iphone4s, automatic layout conflicts with animations, prioritizing cabasicanimation, or manually overwriting animations

6. The URL of the IOS request cannot contain special characters, otherwise the URL is empty after the string is forwarded to the URL ; you need to convert it with stringbyaddingpercentescapeusingencoding:nsutf8stringencoding .

7. KVO is not invoked because _uploadprogress = 0.2 is used instead of self.uploadprogress causing the setter method not to be called, Pit/ http Stackoverflow.com/questions/2728638/observevalueforkeypath-not-being-called

8. When you set the navigation bar to customize the background picture, the picture height is 64 pixels, and even the background picture of the status bar is set together http://blog.csdn.net/wave_1102/article/details/18989107

9. Custom Segue Modal (Modal) transition animation subclass Segue http://www.appcoda.com/custom-segue-animations/

10. When using Cabasicanimation, when the current page is hidden (viewdisappear), the animation is automatically removed; add animation.removedoncompletion = NO, refer to:/http Stackoverflow.com/questions/13501133/infinite-cabasicanimation-stops

11. Dynamically hide or Show (hide) Uitabbaritem on Uitabbar

Http://stackoverflow.com/questions/13661743/disable-hide-uitabbaritem-on-an-uitabbar

iOS notes, development experience Summary "continuous update"

Related Article

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.