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