https://solarianprogrammer.com/2012/03/07/starting-gnu-sed-mac-osx/
UIViewController's method invoke sequence is as below
- awakeFromNib
- viewDidLoad
- viewWillAppear
- viewWillLayoutSubviews
- viewDidLayoutSubviews
- viewDidAppear
best approach is the old-fashioned way. Create images for each size with names like test-667 and do something like:
[UIImage imageNamed:[NSString stringWithFormat:@"test-%g", [[UIScreen mainScreen] bounds].size.height]]
- Select your Project Target in your xcode, then select Product option, in which you could select Archive option.
- Then a new window would open up and in that window select the Export option.
- Then a pop up will come as below and select second option Save to ad-hoc deployment.
for devices without retina:
ImageName.png - For iPhone/iPod
ImageName~ipad.png -- For iPad
For devices with retina display:
[email protected] - For iPhone/iPod
ImageName@2x~ipad.png -- For iPad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kCATransitionFade | |
kCATransitionMoveIn | |
kCATransitionPush | |
kCATransitionReveal | |
@"cameraIris" | |
@"cameraIrisHollowOpen" | |
@"cameraIrisHollowClose" | |
@"cube" | |
@"alignedCube" | |
@"flip" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^quote-flow https://%{HTTP_HOST}/quote-flow [R=301,L] |
https://help.github.com/articles/generating-ssh-keys/#platform-linux
sign up for a new relic account first and you'd get the license key on your account page.
sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'
sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond