资源描述:
《[编写苹果游戏中心应用程序].(Writing.Game.Center.Apps.in.iOS).Vandad.Nahavandipoor..pdf》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、WritingGameCenterAppsiniOSWritingGameCenterAppsiniOSVandadNahavandipoorBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoWritingGameCenterAppsiniOSbyVandadNahavandipoorCopyright©2011VandadNahavandipoor.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005Gravenst
2、einHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:(800)998-9938orcorporate@oreilly.com.Edi
3、tor:AndyOramCoverDesigner:KarenMontgomeryProductionEditor:JasminePerezInteriorDesigner:DavidFutatoProofreader:JasminePerezIllustrator:RobertRomanoPrintingHistory:May2011:FirstEdition.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.WritingG
4、ameCenterAppsiniOS,theimageofacapefox,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.wasawareofatrademarkclaim,thedesignationsha
5、vebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-30565-9[LSI]1303394581TableofContentsPreface..............
6、.......................................................viiGameCenter.................................................................11.1IntroducingGCDandBlockObjects11.2CreatingGameCenterAccounts121.3SettingUpGameCenterforaniOSApp151.4AddingtheGameKitFramework181.5AuthenticatingtheLocalPlaye
7、rinGameCenter211.6RetrievingtheLocalPlayer’sInformation241.7AddingFriendsinGameCenter261.8RetrievingtheLocalPlayer’sFriendsInformation261.9CreatingLeaderboardsiniTunesConnect311.10ReportingScorestoLeaderboards331.11RetrievingLeaderboardsInfor