Commit 07bd3ec3 by Daniel Dahan

added Storyboard examples

parent acda2807
...@@ -6,51 +6,101 @@ ...@@ -6,51 +6,101 @@
</FileRef> </FileRef>
<Group <Group
location = "container:" location = "container:"
name = "MaterialLayer"> name = "Programmatic">
<FileRef <Group
location = "group:MaterialLayer/MaterialLayer.xcodeproj"> location = "container:"
</FileRef> name = "MaterialLayer">
<FileRef
location = "group:Programmatic/MaterialLayer/MaterialLayer.xcodeproj">
</FileRef>
</Group>
<Group
location = "container:"
name = "MaterialView">
<FileRef
location = "group:Programmatic/MaterialView/MaterialView.xcodeproj">
</FileRef>
</Group>
<Group
location = "container:"
name = "MaterialPulseView">
<FileRef
location = "group:Programmatic/MaterialPulseView/MaterialPulseView.xcodeproj">
</FileRef>
</Group>
<Group
location = "container:"
name = "MaterialButton">
<FileRef
location = "group:Programmatic/MaterialButton/MaterialButton.xcodeproj">
</FileRef>
</Group>
<Group
location = "container:"
name = "NavigationBarView">
<FileRef
location = "group:Programmatic/NavigationBarView/NavigationBarView.xcodeproj">
</FileRef>
</Group>
<Group
location = "container:"
name = "CardView">
<FileRef
location = "group:Programmatic/CardView/CardView.xcodeproj">
</FileRef>
</Group>
<Group
location = "container:"
name = "ImageCardView">
<FileRef
location = "group:Programmatic/ImageCardView/ImageCardView.xcodeproj">
</FileRef>
</Group>
</Group> </Group>
<Group <Group
location = "container:" location = "container:"
name = "MaterialView"> name = "Storyboards">
<FileRef <Group
location = "group:MaterialView/MaterialView.xcodeproj"> location = "container:"
</FileRef> name = "MaterialPulseView">
</Group> <FileRef
<Group location = "group:/Users/danieldahan/Dropbox/GraphKit/Technology/Repositories/MaterialKit/Examples/Storyboards/MaterialPulseView/MaterialPulseView.xcodeproj">
location = "container:" </FileRef>
name = "MaterialPulseView"> </Group>
<FileRef <Group
location = "group:MaterialPulseView/MaterialPulseView.xcodeproj"> location = "container:"
</FileRef> name = "MaterialButton">
</Group> <FileRef
<Group location = "group:/Users/danieldahan/Dropbox/GraphKit/Technology/Repositories/MaterialKit/Examples/Storyboards/MaterialButton/MaterialButton.xcodeproj">
location = "container:" </FileRef>
name = "MaterialButton"> </Group>
<FileRef <Group
location = "group:MaterialButton/MaterialButton.xcodeproj"> location = "container:"
</FileRef> name = "NavigationBarView">
</Group> <FileRef
<Group location = "group:Storyboards/NavigationBarView/NavigationBarView.xcodeproj">
location = "container:" </FileRef>
name = "NavigationBarView"> </Group>
<FileRef <Group
location = "group:NavigationBarView/NavigationBarView.xcodeproj"> location = "container:"
</FileRef> name = "CardView">
</Group> <FileRef
<Group location = "group:Storyboards/CardView/CardView.xcodeproj">
location = "container:" </FileRef>
name = "CardView"> </Group>
<FileRef <Group
location = "group:CardView/CardView.xcodeproj"> location = "container:"
</FileRef> name = "ImageCardView">
</Group> <FileRef
<Group location = "group:Storyboards/ImageCardView/ImageCardView.xcodeproj">
location = "container:" </FileRef>
name = "ImageCardView"> </Group>
<FileRef <Group
location = "group:ImageCardView/ImageCardView.xcodeproj"> location = "container:"
</FileRef> name = "SideNavigationViewController">
<FileRef
location = "group:Storyboards/SideNavigationViewController/SideNavigationViewController.xcodeproj">
</FileRef>
</Group>
</Group> </Group>
</Workspace> </Workspace>
//
// Copyright (C) 2015 CosmicMind, Inc. <http://cosmicmind.io> and other CosmicMind contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program located at the root of the software package
// in a file called LICENSE. If not, see <http://www.gnu.org/licenses/>.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.mainScreen().bounds)
window!.rootViewController = ViewController()
window!.makeKeyAndVisible()
return true
}
func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
...@@ -20,20 +20,40 @@ import UIKit ...@@ -20,20 +20,40 @@ import UIKit
@UIApplicationMain @UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate { class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow? var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.mainScreen().bounds) window = UIWindow(frame: UIScreen.mainScreen().bounds)
window!.rootViewController = ViewController() window!.rootViewController = ViewController()
window!.makeKeyAndVisible() window!.makeKeyAndVisible()
return true return true
} }
func applicationWillResignActive(application: UIApplication) {} func applicationWillResignActive(application: UIApplication) {
func applicationDidEnterBackground(application: UIApplication) {} // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
func applicationWillEnterForeground(application: UIApplication) {} // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
func applicationDidBecomeActive(application: UIApplication) {} }
func applicationWillTerminate(application: UIApplication) {}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
} }
...@@ -20,20 +20,40 @@ import UIKit ...@@ -20,20 +20,40 @@ import UIKit
@UIApplicationMain @UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate { class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow? var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.mainScreen().bounds) window = UIWindow(frame: UIScreen.mainScreen().bounds)
window!.rootViewController = ViewController() window!.rootViewController = ViewController()
window!.makeKeyAndVisible() window!.makeKeyAndVisible()
return true return true
} }
func applicationWillResignActive(application: UIApplication) {} func applicationWillResignActive(application: UIApplication) {
func applicationDidEnterBackground(application: UIApplication) {} // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
func applicationWillEnterForeground(application: UIApplication) {} // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
func applicationDidBecomeActive(application: UIApplication) {} }
func applicationWillTerminate(application: UIApplication) {}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
} }
...@@ -20,20 +20,40 @@ import UIKit ...@@ -20,20 +20,40 @@ import UIKit
@UIApplicationMain @UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate { class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow? var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.mainScreen().bounds) window = UIWindow(frame: UIScreen.mainScreen().bounds)
window!.rootViewController = ViewController() window!.rootViewController = ViewController()
window!.makeKeyAndVisible() window!.makeKeyAndVisible()
return true return true
} }
func applicationWillResignActive(application: UIApplication) {} func applicationWillResignActive(application: UIApplication) {
func applicationDidEnterBackground(application: UIApplication) {} // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
func applicationWillEnterForeground(application: UIApplication) {} // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
func applicationDidBecomeActive(application: UIApplication) {} }
func applicationWillTerminate(application: UIApplication) {}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment