Permalink
Browse files

Rename JustLoginSample to SessionLoginSample

Summary: Rename the JustLoginSample to SessionLoginSample.

Test Plan: Built and ran the sample on the iOS simulator, verified that the functionality still works.

Reviewers: jacl

Reviewed By: jacl

CC: dye

Differential Revision: https://phabricator.fb.com/D538717

Task ID: 1281869
  • Loading branch information...
1 parent 202d1a2 commit a08c76c73d9eeaa35a0d3ca5c59dd1838a84a78e @mingflifb mingflifb committed Aug 2, 2012
Showing with 106 additions and 88 deletions.
  1. +3 −3 samples/{JustLoginSample → SessionLoginSample}/ReadMe.txt
  2. +50 −50 ...mple/JustLoginSample.xcodeproj → SessionLoginSample/SessionLoginSample.xcodeproj}/project.pbxproj
  3. BIN samples/{JustLoginSample/JustLoginSample → SessionLoginSample/SessionLoginSample}/Icon-72.png
  4. BIN samples/{JustLoginSample/JustLoginSample → SessionLoginSample/SessionLoginSample}/Icon-72@2x.png
  5. BIN samples/{JustLoginSample/JustLoginSample → SessionLoginSample/SessionLoginSample}/Icon.png
  6. BIN samples/{JustLoginSample/JustLoginSample → SessionLoginSample/SessionLoginSample}/Icon@2x.png
  7. +4 −4 ...inSample/JustLoginSample/JLAppDelegate.h → SessionLoginSample/SessionLoginSample/SLAppDelegate.h}
  8. +5 −5 ...inSample/JustLoginSample/JLAppDelegate.m → SessionLoginSample/SessionLoginSample/SLAppDelegate.m}
  9. +1 −1 ...le/JustLoginSample/JLViewController.h → SessionLoginSample/SessionLoginSample/SLViewController.h}
  10. +7 −7 ...le/JustLoginSample/JLViewController.m → SessionLoginSample/SessionLoginSample/SLViewController.m}
  11. +31 −13 ...JustLoginSample-Info.plist → SessionLoginSample/SessionLoginSample/SessionLoginSample-Info.plist}
  12. +1 −1 ...JustLoginSample-Prefix.pch → SessionLoginSample/SessionLoginSample/SessionLoginSample-Prefix.pch}
  13. 0 ...stLoginSample/JustLoginSample → SessionLoginSample/SessionLoginSample}/en.lproj/InfoPlist.strings
  14. +1 −1 ...ewController_iPad.xib → SessionLoginSample/SessionLoginSample/en.lproj/SLViewController_iPad.xib}
  15. +1 −1 ...ntroller_iPhone.xib → SessionLoginSample/SessionLoginSample/en.lproj/SLViewController_iPhone.xib}
  16. +2 −2 samples/{JustLoginSample/JustLoginSample → SessionLoginSample/SessionLoginSample}/main.m
@@ -1,4 +1,4 @@
-Just Login sample
+Session Login sample
Demonstrates how to use the FBSession object to login to Facebook and manage access tokens.
@@ -10,8 +10,8 @@ iPhone OS 4.0 or later
Using the Sample
Install the Facebook SDK for iOS.
-Launch the JustLoginSample project using Xcode from the
-<Facebook SDK>/samples/JustLoginSample directory.
+Launch the SessionLoginSample project using Xcode from the
+<Facebook SDK>/samples/SessionLoginSample directory.
Changes from Previous Versions
1.0 - First release.
@@ -13,10 +13,10 @@
84C757C1152A38770070DD9C /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 84C757C0152A38770070DD9C /* CoreGraphics.framework */; };
84C757C7152A38770070DD9C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 84C757C5152A38770070DD9C /* InfoPlist.strings */; };
84C757C9152A38770070DD9C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 84C757C8152A38770070DD9C /* main.m */; };
- 84C757CD152A38770070DD9C /* JLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 84C757CC152A38770070DD9C /* JLAppDelegate.m */; };
- 84C757D0152A38770070DD9C /* JLViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 84C757CF152A38770070DD9C /* JLViewController.m */; };
- 84C757D3152A38780070DD9C /* JLViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84C757D1152A38780070DD9C /* JLViewController_iPhone.xib */; };
- 84C757D6152A38780070DD9C /* JLViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84C757D4152A38780070DD9C /* JLViewController_iPad.xib */; };
+ 84C757CD152A38770070DD9C /* SLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 84C757CC152A38770070DD9C /* SLAppDelegate.m */; };
+ 84C757D0152A38770070DD9C /* SLViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 84C757CF152A38770070DD9C /* SLViewController.m */; };
+ 84C757D3152A38780070DD9C /* SLViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84C757D1152A38780070DD9C /* SLViewController_iPhone.xib */; };
+ 84C757D6152A38780070DD9C /* SLViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84C757D4152A38780070DD9C /* SLViewController_iPad.xib */; };
84E7AF45158FAB2F006009C7 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 84E7AF41158FAB2F006009C7 /* Icon-72.png */; };
84E7AF46158FAB2F006009C7 /* Icon-72@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 84E7AF42158FAB2F006009C7 /* Icon-72@2x.png */; };
84E7AF47158FAB2F006009C7 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 84E7AF43158FAB2F006009C7 /* Icon.png */; };
@@ -26,20 +26,20 @@
/* Begin PBXFileReference section */
84A5DA9D15A68D1500FE54AF /* Accounts.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accounts.framework; path = System/Library/Frameworks/Accounts.framework; sourceTree = SDKROOT; };
- 84C757B8152A38770070DD9C /* JustLoginSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JustLoginSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 84C757B8152A38770070DD9C /* SessionLoginSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SessionLoginSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
84C757BC152A38770070DD9C /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
84C757BE152A38770070DD9C /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
84C757C0152A38770070DD9C /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 84C757C4152A38770070DD9C /* JustLoginSample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "JustLoginSample-Info.plist"; sourceTree = "<group>"; };
+ 84C757C4152A38770070DD9C /* SessionLoginSample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SessionLoginSample-Info.plist"; sourceTree = "<group>"; };
84C757C6152A38770070DD9C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
84C757C8152A38770070DD9C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 84C757CA152A38770070DD9C /* JustLoginSample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "JustLoginSample-Prefix.pch"; sourceTree = "<group>"; };
- 84C757CB152A38770070DD9C /* JLAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = JLAppDelegate.h; sourceTree = "<group>"; };
- 84C757CC152A38770070DD9C /* JLAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JLAppDelegate.m; sourceTree = "<group>"; };
- 84C757CE152A38770070DD9C /* JLViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = JLViewController.h; sourceTree = "<group>"; };
- 84C757CF152A38770070DD9C /* JLViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JLViewController.m; sourceTree = "<group>"; };
- 84C757D2152A38780070DD9C /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/JLViewController_iPhone.xib; sourceTree = "<group>"; };
- 84C757D5152A38780070DD9C /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/JLViewController_iPad.xib; sourceTree = "<group>"; };
+ 84C757CA152A38770070DD9C /* SessionLoginSample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SessionLoginSample-Prefix.pch"; sourceTree = "<group>"; };
+ 84C757CB152A38770070DD9C /* SLAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLAppDelegate.h; sourceTree = "<group>"; };
+ 84C757CC152A38770070DD9C /* SLAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLAppDelegate.m; sourceTree = "<group>"; };
+ 84C757CE152A38770070DD9C /* SLViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SLViewController.h; sourceTree = "<group>"; };
+ 84C757CF152A38770070DD9C /* SLViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SLViewController.m; sourceTree = "<group>"; };
+ 84C757D2152A38780070DD9C /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SLViewController_iPhone.xib; sourceTree = "<group>"; };
+ 84C757D5152A38780070DD9C /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SLViewController_iPad.xib; sourceTree = "<group>"; };
84E7AF41158FAB2F006009C7 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = "<group>"; };
84E7AF42158FAB2F006009C7 /* Icon-72@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72@2x.png"; sourceTree = "<group>"; };
84E7AF43158FAB2F006009C7 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
@@ -66,7 +66,7 @@
84C757AD152A38770070DD9C = {
isa = PBXGroup;
children = (
- 84C757C2152A38770070DD9C /* JustLoginSample */,
+ 84C757C2152A38770070DD9C /* SessionLoginSample */,
84C757BB152A38770070DD9C /* Frameworks */,
84C757B9152A38770070DD9C /* Products */,
);
@@ -75,7 +75,7 @@
84C757B9152A38770070DD9C /* Products */ = {
isa = PBXGroup;
children = (
- 84C757B8152A38770070DD9C /* JustLoginSample.app */,
+ 84C757B8152A38770070DD9C /* SessionLoginSample.app */,
);
name = Products;
sourceTree = "<group>";
@@ -92,18 +92,18 @@
name = Frameworks;
sourceTree = "<group>";
};
- 84C757C2152A38770070DD9C /* JustLoginSample */ = {
+ 84C757C2152A38770070DD9C /* SessionLoginSample */ = {
isa = PBXGroup;
children = (
- 84C757CB152A38770070DD9C /* JLAppDelegate.h */,
- 84C757CC152A38770070DD9C /* JLAppDelegate.m */,
- 84C757CE152A38770070DD9C /* JLViewController.h */,
- 84C757CF152A38770070DD9C /* JLViewController.m */,
- 84C757D1152A38780070DD9C /* JLViewController_iPhone.xib */,
- 84C757D4152A38780070DD9C /* JLViewController_iPad.xib */,
+ 84C757CB152A38770070DD9C /* SLAppDelegate.h */,
+ 84C757CC152A38770070DD9C /* SLAppDelegate.m */,
+ 84C757CE152A38770070DD9C /* SLViewController.h */,
+ 84C757CF152A38770070DD9C /* SLViewController.m */,
+ 84C757D1152A38780070DD9C /* SLViewController_iPhone.xib */,
+ 84C757D4152A38780070DD9C /* SLViewController_iPad.xib */,
84C757C3152A38770070DD9C /* Supporting Files */,
);
- path = JustLoginSample;
+ path = SessionLoginSample;
sourceTree = "<group>";
};
84C757C3152A38770070DD9C /* Supporting Files */ = {
@@ -113,20 +113,20 @@
84E7AF42158FAB2F006009C7 /* Icon-72@2x.png */,
84E7AF43158FAB2F006009C7 /* Icon.png */,
84E7AF44158FAB2F006009C7 /* Icon@2x.png */,
- 84C757C4152A38770070DD9C /* JustLoginSample-Info.plist */,
+ 84C757C4152A38770070DD9C /* SessionLoginSample-Info.plist */,
84C757C5152A38770070DD9C /* InfoPlist.strings */,
84C757C8152A38770070DD9C /* main.m */,
- 84C757CA152A38770070DD9C /* JustLoginSample-Prefix.pch */,
+ 84C757CA152A38770070DD9C /* SessionLoginSample-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
- 84C757B7152A38770070DD9C /* JustLoginSample */ = {
+ 84C757B7152A38770070DD9C /* SessionLoginSample */ = {
isa = PBXNativeTarget;
- buildConfigurationList = 84C757D9152A38780070DD9C /* Build configuration list for PBXNativeTarget "JustLoginSample" */;
+ buildConfigurationList = 84C757D9152A38780070DD9C /* Build configuration list for PBXNativeTarget "SessionLoginSample" */;
buildPhases = (
84C757B4152A38770070DD9C /* Sources */,
84C757B5152A38770070DD9C /* Frameworks */,
@@ -136,9 +136,9 @@
);
dependencies = (
);
- name = JustLoginSample;
- productName = JustLoginSample;
- productReference = 84C757B8152A38770070DD9C /* JustLoginSample.app */;
+ name = SessionLoginSample;
+ productName = SessionLoginSample;
+ productReference = 84C757B8152A38770070DD9C /* SessionLoginSample.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
@@ -149,7 +149,7 @@
attributes = {
LastUpgradeCheck = 0420;
};
- buildConfigurationList = 84C757B2152A38770070DD9C /* Build configuration list for PBXProject "JustLoginSample" */;
+ buildConfigurationList = 84C757B2152A38770070DD9C /* Build configuration list for PBXProject "SessionLoginSample" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
@@ -162,7 +162,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
- 84C757B7152A38770070DD9C /* JustLoginSample */,
+ 84C757B7152A38770070DD9C /* SessionLoginSample */,
);
};
/* End PBXProject section */
@@ -173,8 +173,8 @@
buildActionMask = 2147483647;
files = (
84C757C7152A38770070DD9C /* InfoPlist.strings in Resources */,
- 84C757D3152A38780070DD9C /* JLViewController_iPhone.xib in Resources */,
- 84C757D6152A38780070DD9C /* JLViewController_iPad.xib in Resources */,
+ 84C757D3152A38780070DD9C /* SLViewController_iPhone.xib in Resources */,
+ 84C757D6152A38780070DD9C /* SLViewController_iPad.xib in Resources */,
84E7AF45158FAB2F006009C7 /* Icon-72.png in Resources */,
84E7AF46158FAB2F006009C7 /* Icon-72@2x.png in Resources */,
84E7AF47158FAB2F006009C7 /* Icon.png in Resources */,
@@ -190,8 +190,8 @@
buildActionMask = 2147483647;
files = (
84C757C9152A38770070DD9C /* main.m in Sources */,
- 84C757CD152A38770070DD9C /* JLAppDelegate.m in Sources */,
- 84C757D0152A38770070DD9C /* JLViewController.m in Sources */,
+ 84C757CD152A38770070DD9C /* SLAppDelegate.m in Sources */,
+ 84C757D0152A38770070DD9C /* SLViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -206,20 +206,20 @@
name = InfoPlist.strings;
sourceTree = "<group>";
};
- 84C757D1152A38780070DD9C /* JLViewController_iPhone.xib */ = {
+ 84C757D1152A38780070DD9C /* SLViewController_iPhone.xib */ = {
isa = PBXVariantGroup;
children = (
84C757D2152A38780070DD9C /* en */,
);
- name = JLViewController_iPhone.xib;
+ name = SLViewController_iPhone.xib;
sourceTree = "<group>";
};
- 84C757D4152A38780070DD9C /* JLViewController_iPad.xib */ = {
+ 84C757D4152A38780070DD9C /* SLViewController_iPad.xib */ = {
isa = PBXVariantGroup;
children = (
84C757D5152A38780070DD9C /* en */,
);
- name = JLViewController_iPad.xib;
+ name = SLViewController_iPad.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
@@ -246,7 +246,7 @@
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
@@ -266,7 +266,7 @@
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
@@ -282,11 +282,11 @@
"\"$(SRCROOT)/../../build\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "JustLoginSample/JustLoginSample-Prefix.pch";
- INFOPLIST_FILE = "JustLoginSample/JustLoginSample-Info.plist";
+ GCC_PREFIX_HEADER = "SessionLoginSample/SessionLoginSample-Prefix.pch";
+ INFOPLIST_FILE = "SessionLoginSample/SessionLoginSample-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
OTHER_LDFLAGS = "-lsqlite3.0";
- PRODUCT_NAME = "$(TARGET_NAME)";
+ PRODUCT_NAME = SessionLoginSample;
WRAPPER_EXTENSION = app;
};
name = Debug;
@@ -299,19 +299,19 @@
"\"$(SRCROOT)/../../build\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "JustLoginSample/JustLoginSample-Prefix.pch";
- INFOPLIST_FILE = "JustLoginSample/JustLoginSample-Info.plist";
+ GCC_PREFIX_HEADER = "SessionLoginSample/SessionLoginSample-Prefix.pch";
+ INFOPLIST_FILE = "SessionLoginSample/SessionLoginSample-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
OTHER_LDFLAGS = "-lsqlite3.0";
- PRODUCT_NAME = "$(TARGET_NAME)";
+ PRODUCT_NAME = SessionLoginSample;
WRAPPER_EXTENSION = app;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
- 84C757B2152A38770070DD9C /* Build configuration list for PBXProject "JustLoginSample" */ = {
+ 84C757B2152A38770070DD9C /* Build configuration list for PBXProject "SessionLoginSample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
84C757D7152A38780070DD9C /* Debug */,
@@ -320,7 +320,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- 84C757D9152A38780070DD9C /* Build configuration list for PBXNativeTarget "JustLoginSample" */ = {
+ 84C757D9152A38780070DD9C /* Build configuration list for PBXNativeTarget "SessionLoginSample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
84C757DA152A38780070DD9C /* Debug */,
@@ -17,19 +17,19 @@
#import <UIKit/UIKit.h>
#import <FacebookSDK/FacebookSDK.h>
-// Just Login sample application
+// Session Login sample application
//
// The purpose of this sample application is to provide an example of
// how to log in with Facebook. The goal of the sample is to show how
// to use the FBSession class for this purpose, with minimal additional
// sample functionality to distract from the core topic.
-@class JLViewController;
+@class SLViewController;
-@interface JLAppDelegate : UIResponder <UIApplicationDelegate>
+@interface SLAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
-@property (strong, nonatomic) JLViewController *viewController;
+@property (strong, nonatomic) SLViewController *viewController;
// FBSample logic
// In this sample the app delegate maintains a property for the current
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-#import "JLAppDelegate.h"
+#import "SLAppDelegate.h"
-#import "JLViewController.h"
+#import "SLViewController.h"
-@implementation JLAppDelegate
+@implementation SLAppDelegate
@synthesize window = _window;
@synthesize viewController = _viewController;
@@ -63,9 +63,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
- self.viewController = [[JLViewController alloc] initWithNibName:@"JLViewController_iPhone" bundle:nil];
+ self.viewController = [[SLViewController alloc] initWithNibName:@"SLViewController_iPhone" bundle:nil];
} else {
- self.viewController = [[JLViewController alloc] initWithNibName:@"JLViewController_iPad" bundle:nil];
+ self.viewController = [[SLViewController alloc] initWithNibName:@"SLViewController_iPad" bundle:nil];
}
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
@@ -16,6 +16,6 @@
#import <UIKit/UIKit.h>
-@interface JLViewController : UIViewController
+@interface SLViewController : UIViewController
@end
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-#import "JLViewController.h"
-#import "JLAppDelegate.h"
+#import "SLViewController.h"
+#import "SLAppDelegate.h"
-@interface JLViewController ()
+@interface SLViewController ()
@property (strong, nonatomic) IBOutlet UIButton *buttonLoginLogout;
@property (strong, nonatomic) IBOutlet UITextView *textNoteOrLink;
@@ -27,7 +27,7 @@ - (void)updateView;
@end
-@implementation JLViewController
+@implementation SLViewController
@synthesize textNoteOrLink = _textNoteOrLink;
@synthesize buttonLoginLogout = _buttonLoginLogout;
@@ -38,7 +38,7 @@ - (void)viewDidLoad {
[self updateView];
- JLAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
+ SLAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
if (!appDelegate.session.isOpen) {
// create a fresh session object
appDelegate.session = [[FBSession alloc] init];
@@ -62,7 +62,7 @@ - (void)viewDidLoad {
// main helper method to update the UI to reflect the current state of the session.
- (void)updateView {
// get the app delegate, so that we can reference the session property
- JLAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
+ SLAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
if (appDelegate.session.isOpen) {
// valid account UI is shown whenever the session is open
[self.buttonLoginLogout setTitle:@"Log out" forState:UIControlStateNormal];
@@ -79,7 +79,7 @@ - (void)updateView {
// handler for button click, logs sessions in or out
- (IBAction)buttonClickHandler:(id)sender {
// get the app delegate so that we can access the session property
- JLAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
+ SLAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
// this button's job is to flip-flop the session from open to closed
if (appDelegate.session.isOpen) {
Oops, something went wrong.

0 comments on commit a08c76c

Please sign in to comment.