This file contains 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
/** | |
For configuring the NavigationBar to show/hide when user swipes | |
- returns: void | |
*/ | |
func configureNavigationBarAsHideable() { | |
if let navigationController = self.navigationController { | |
// respond to swipe and hide/show | |
navigationController.hidesBarsOnSwipe = true |
This file contains 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
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
// For Setting the background color of the Navigation Bar | |
let navigationBarAppearace = UINavigationBar.appearance() | |
let navigationBarColor = UIColor.blackColor() | |
navigationBarAppearace.barTintColor = navigationBarColor | |
// Add a view in back of status bar text (needed when UINavigationBar is hidden) |
This file contains 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
Title: Installing Server Side Swift with Perfect on AWS Elastic Compute Cloud | |
Target Server OS: Ubuntu 14.04 | |
Target Cloud Infrastructure: Amazon Web Services - Elastic Compute Cloud | |
Target Ubuntu: | |
AWS AMI Name is Ubuntu Server 14.04 LTS (HVM), SSD Volume Type - ami-9abea4fb | |
// install dependencies | |
$ sudo apt-get update | |
$ sudo apt-get --assume-yes install git clang libicu-dev libssl-dev libevent-dev libsqlite3-dev libsqlite3-dev libcurl4-openssl-dev uuid-dev make |
This file contains 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
<resources> | |
<string name="hello_import_fragment">I am the IMPORT Fragment Layout</string> | |
<string name="hello_gallery_fragment">I am the GALLERY Fragment Layout</string> | |
<string name="hello_slideshow_fragment">I am the SLIDESHOW Fragment Layout</string> | |
<string name="hello_tools_fragment">I am the TOOLS Fragment Layout</string> | |
</resources> |
This file contains 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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
// toolbar | |
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | |
setSupportActionBar(toolbar); | |
// FAB button |