For faster connection speed and more flexibility.
- Start Xcode in command line by running this in commandline
/Applications/Xcode.app/Contents/MacOS/Xcode - Start downloading of the simulator
- Cancel it. YES CANCEL IT!
- You will get a message like this:
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode| <?php | |
| // This is sample code to draw some of the charts I blogged about here: | |
| // https://medium.com/ios-os-x-development/keeping-your-wits-as-an-indie-app-developer-3b5b14428e1f | |
| // | |
| // A few disclaimers: | |
| // 1. This assumes you have at least 30 days of sales data in order to draw the Trailing 7 Days Chart | |
| // 2. This assumes you have over 52 consecutive weeks of data in order to draw the Trailing Year Chart | |
| // 3. I don't really know PHP. Everything this does, I had to look it up while writing it. If you actually know PHP, sorry. There are surely better ways. | |
| // | |
| // the results of this PHP script is intended to be drawn using the Flot library. |
In this article, I'm going to explore a way that we can create views that implement custom Core Animation property animations in a natural way.
As we know, layers in iOS come in two flavours: Backing layers and hosted layers. The only difference between them is that the view acts as the layer delegate for its backing layer, but not for any hosted sublayers.
In order to implement the UIView transactional animation blocks, UIView disables all animations by default and then re-enables them individually as required. It does this using the actionForLayer:forKey: method.
Somewhat strangely, UIView doesn't enable animations for every property that CALayer does by default. A notable example is the layer.contents property, which is animatable by default for a hosted layer, but cannot be animated using a UIView animation block.
| typedef enum _UIBackgroundStyle { | |
| UIBackgroundStyleDefault, | |
| UIBackgroundStyleTransparent, | |
| UIBackgroundStyleLightBlur, | |
| UIBackgroundStyleDarkBlur, | |
| UIBackgroundStyleDarkTranslucent | |
| } UIBackgroundStyle; | |
| @interface UIApplication (UIBackgroundStyle) | |
| -(void)_setBackgroundStyle:(UIBackgroundStyle)style; |