iPhone Game Development by Chris Craft
Author:Chris Craft
Language: eng
Format: mobi, epub
ISBN: 9780470496664
Publisher: John Wiley & Sons, Ltd.
Published: 2010-03-10T10:00:00+00:00
@interface MainViewController : UIViewController {
}
To label the MainViewController as implementing the FBSessionDelegate protocol, you need to add the name of the protocol to the inside of a pair of angle brackets right before the curly braces:
#import <UIKit/UIKit.h>
#import “FBConnect/FBConnect.h”
@interface MainViewController : UIViewController <FBSessionDelegate> {
}
Also notice how you will need to add a new import statement to the MainViewController.h file. This instructs the compiler where to search to learn what makes the FBSessionDelegate work.
By adding the FBSessionDelegate to your MainViewController.h file, you are promising the compiler that it will be able to find any methods required by the FBSessionDelegate in your MainViewController.m file. That means at a minimum you will need to implement the didLogin method of the FBSessionDelegate in your MainViewController.m file.
Creating alert views
Add the following didLogin method to your MainViewController class. This code displays an alert view to the user when the application is able to log in to Facebook Connect. The alert view displays the text “Oh Yeah!” and waits for the user to click the OK button to close the dialog box:
////////////////////////////////////////////////////////////////////////////////
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Blood, Sweat, and Pixels by Jason Schreier(3485)
Dawn of the New Everything by Jaron Lanier(2689)
Godot 4 Game Development Cookbook by Jeff Johnson(2554)
The Art of Doom by Bethesda(2037)
Significant Zero by Walt Williams(1885)
Creative Character Design by Bryan Tillman(1842)
World of Warcraft Chronicle Volume 3 by Blizzard Entertainment(1662)
The Ultimate Roblox Book by David Jagneaux(1617)
Art Of Atari by Tim Lapetino(1567)
Pillars of Eternity Guidebook by Obsidian Entertainment(1539)
Dawn of the New Everything: Encounters with Reality and Virtual Reality by Jaron Lanier(1539)
1628927445Game by Unknown(1478)
Unreal Engine 4 Virtual Reality Projects by Kevin Mack(1474)
Mission Python by Sean McManus(1457)
Unreal Engine Virtual Reality Quick Start Guide by Jessica Plowman(1452)
The Ultimate Player's Guide to Minecraft by Stephen O'Brien(1421)
Learning D by 2015(1419)
Unity 2018 By Example by Alan Thorn(1394)
Road Games by Road Games(1369)
