Thoughts on a demo

Source: Internet
Author: User

Leave a blog, record the demo at any time, write all kinds of problems encountered during the demo process, and leave a footprint on the road that has passed, so that fewer people can take a detour!1. The project supports the iPhone 5-, January 1, July 19, 2013

Run an official Apple demo

The demo is very old and supports IOS 3.2. The SDK also supports iPhone OS 4.0 ......

Then I ran it on my iPhone 5. I feel pretty good. Then, I found a problem. Why can't I find it in the bottom two rows ......

Then ...... Then ...... After a quarter of an hour, I can find it on XIB.

Because no attribute is set on the window of the mainwindow. XIB file, click window and select the "full screen at launch" check box in the window attribute;

PS: I admit that I am not using IB well. I admit that I have always been a cainiao ....... Progress!

2. cocould not change executable permissions on the application. --

The translation is: Applications with executable permissions cannot be changed.

The same bundle identifier installs two (using the same certificate) programs in the iPhone, causing a conflict. You use this account to run another program, and the bundle ID of that program is the same as this one. The dialog box is displayed. Bundle identifier can be the same, but the same bundle identifier must have the same target name. So,

Solution: delete another app that uses this certificate!

3. Add a gradient shadow effect to the edge of the uiview, January 1, July 22, 2013.

Method 1:

-(Optional *) shadowofview :( float) frameheight {cagradientlayer * newshadow = [[cagradientlayer alloc] init] autorelease]; cgrect newshadowframe = cgrectmake (0, 0, 5, frameheight ); newshadow. frame = newshadowframe; // Add a gradient color combination.
// The first is start color, and the second is end color newshadow. colors = [nsarray arraywithobjects :( ID) [uicolor blackcolor]. cgcolor, (ID) [uicolor clearcolor]. cgcolor, nil]; newshadow. startpoint = cgpointmake (0.0, 0.5); newshadow. endpoint = cgpointmake (1.0, 0.5); Return newshadow ;}
4. Point "+" similar to the path effect, and then rotate the effect at 45 degrees, January 1, July 31, 2013.

This is actually simple. The final result is actually rotating the imageview.

    float angle = isOpen ? -M_PI_4 : 0.0f;    [UIView animateWithDuration:0.2f animations:^{        _imageView.transform = CGAffineTransformMakeRotation(angle);    }];

To be continued

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.