var mainWidownMock: UIView = UIView(frame: CGRectMake(0, 0, width, height))
XCPlaygroundPage.currentPage.liveView = mainWidownMock;
If you want to list all the URL call for an App Transport Security Audit, one of the ways is to enable
this will log all the URL request call into a file. After you have run the app
- Download the app Container .xcappdata
- /AppData/Library/Logs/CrashReporter will have a log file with all the URL
With iOS7 we got UImotionEffect, an abstract class, you can subclass this to add your own custom motion effect or use UIInterpolatingMotionEffect.
Adding Motion effect to your app is simple and easy. Just played with UIInterpolationMotionEffect. here is how you do it.
self.tiltMotionEffectHorizontal = [[UIInterpolatingMotionEffect alloc] initWithKeyPath:@”center.x” type:UIInterpolatingMotionEffectTypeTiltAlongHorizontalAxis];
self.tiltMotionEffectHorizontal.minimumRelativeValue = [NSNumber numberWithFloat:-100];
self.tiltMotionEffectHorizontal.maximumRelativeValue = [NSNumber numberWithFloat:100];
self.tiltMotionEffectVertical = [[UIInterpolatingMotionEffect alloc] initWithKeyPath:@”center.y” type:UIInterpolatingMotionEffectTypeTiltAlongVerticalAxis];
self.tiltMotionEffectVertical.minimumRelativeValue = [NSNumber numberWithFloat:-100.0];
self.tiltMotionEffectVertical.maximumRelativeValue = [NSNumber numberWithFloat:100.0];
- Create an instance of the motion effect with the key path to animate.
- Set the maximum & minimum amount to map the system values of -1 to +1. (in this example its -100 to +100)
- Add the effect to the view you want to animate.
Now its your time to play with this & write your own custom class of motion effects.
Now there are some saying the same old “apple is doomed”.
Reason they say: They did not release the pre-order sales number.
Real Reason: Apple never ever breaks the sales number (model per se). The iPhone 5S is not available for pre-order until the 20th. This applies for the iPod sales number as well
other companies like Amazon never releases their hardware (kindle) sales figure.
Its much better to use, when you use developer previews and home brew breaks…. Time saver….