Hit fox framework v1.1

522 views

Published on

The HitFox iOS SDK for Apple iOS provides integration of the HitFox Game Finder game browsing functionality. The iOS SDK is provided in the form of a framework that you may simply include in your iOS project. Our SDK is compatible with iPhone®, iPad® and iPod Touch® devices.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
522
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Hit fox framework v1.1

  1. 1. Page 1.HitFox SDK v1.1iOS Integration Guide Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  2. 2. Page 2.Introduction & Table of ContentsiOS SDK v1.1The HitFox iOS SDK for Apple iOS provides integration of the HitFox Game Finder game browsing functionality. TheiOS SDK is provided in the form of a framework that you may simply include in your iOS project. Our SDK iscompatible with iPhone®, iPad® and iPod Touch® devices.Introduction & Table of Contents1. Compatibility2. Download iOS SDK v1.13. Quick start Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  3. 3. Page 3.1. Compatibility The iOS SDK is compatible with iOS 5.0 and above using Xcode 4.5. The SDK is compatible with ARC and non- ARC projects.2. Download iOS SDK v1.1 There is one download option for developers using the iOS SDK: Projects with target of iOS 5.0+ may use the: HitFoxFramework.embeddedframework Once you’ve downloaded the iOS SDK that is compatible with your mobile apps, decompress the .zip file andcopy the files to your development computer.3. Quick start Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  4. 4. Page 4.In Xcode, Build Phases -->Link Binary with Libraries, link the following files:A. Add the HitFoxFramework.embeddedframework/HitFoxFramework.framework.Tip: be sure to choose the plus to “add” the file to your project. This will create the necessary linking for a staticlibrary in Xcode. Additionally, you can drag and drop the framework file into the list of libraries you want to link. Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  5. 5. Page 5. Prepared by theHitFox App Discovery GmbH. Engineering Team© 2012 - 2013 HitFox, GmbH. | All rights reserved
  6. 6. Page 6.B. Add the following Binary Libraries to your project: Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  7. 7. Page 7.C. Link the Resources folder Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  8. 8. Page 8. Prepared by theHitFox App Discovery GmbH. Engineering Team© 2012 - 2013 HitFox, GmbH. | All rights reserved
  9. 9. Page 9.D. Import GameList/DailyGift from the SDK#import <HitFoxFramework/GamesList.h>#import <HitFoxFramework/DailyGift.h>E. Initialize the GamesList/DailyGift classGamesList *gameList = [[GamesList alloc] ! ! ! ! !! ! ! ! initWithSecret:@"app_secret" appId:@"app_id"! ! ! ! ! andParams:nil];DailyGift *gift = [[DailyGift alloc]! ! ! ! initWithSecret:@"app_secret"! ! ! ! ! appId:@"app_id"! ! ! ! ! andParams:nil];Use your App Secret and App ID provided Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  10. 10. Page 10. F1. Get the Game List Controller UIViewController *viewController = [gameList getList]; UINavigationController *navController = [[UINavigationController alloc] ! ! ! ! ! ! ! ! initWithRootViewController:viewController]; F2. Get the DailyGift View UIView *giftView = [gift getGiftWithFrame:CGRectMake(0, 96, 320, 362)];! ViewController *viewController = [[ViewController alloc] initWithNibName:@"ViewController"! ! ! ! ! ! ! ! ! ! ! ! ! ! bundle:nil]; [self.viewController.view addSubview:giftView]; G. In your Target Build Settings Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  11. 11. Page 11.H. Customize the colorsThe library is configurable with the following colors:UIColor *gameListBackground;UIColor *gameListGameTitleLabel;UIColor *gameListFirstGameTitleLabel;UIColor *gameListFirstGamePriceLabel;UIColor *gameListFirstGamePriceDropLabel;UIColor *gameListGameAgoLabel;UIColor *gameListGamePriceLabel;UIColor *gameListGamePriceDropLabel;UIColor *gameListFilterLabel;UIColor *gameListFilterSelectedLabel;UIColor *gameDetailBackground;UIColor *gameDetailTitleLabel;UIColor *gameDetailPriceLabel;UIColor *gameDetailPriceDropLabel;UIColor *gameDetailImageSliderBackground;UIColor *gameDetailImageSliderBorder;UIColor *gameDetailInfoBackground;UIColor *gameDetailInfoTitleLabel;UIColor *gameDetailInfoValueLabel;UIColor *gameDetailInformationBackground;UIColor *gameDetailInformationTitleLabel;UIColor *gameDetailInformationValueLabel;UIColor *gameDetailReviewBackground; Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  12. 12. Page 12.UIColor *gameDetailReviewTitleLabel;UIColor *gameDetailReviewValueLabel;UIColor *gameDetailSummaryBackground;UIColor *gameDetailSummaryTitleLabel;UIColor *gameDetailSummaryText;UIColor *gameDetailPosNegBackground;UIColor *gameDetailPosNegText;UIColor *gameDetailRatingBackground;UIColor *gameDetailRatingTitleLabel;UIColor *gameDetailRatingText;UIColor *gameOfTheDayBackground;UIColor *gameOfTheDayNavigationTitle;UIColor *gameOfTheDayTitleLabel;UIColor *gameOfTheDayPriceLabel;UIColor *gameOfTheDayPriceDropLabel;UIColor *gameOfTheDayToTheGameButtonLabel;UIColor *gameOfTheDayToTheStoreButtonLabel;UIColor *colorForCategoryGreen;UIColor *colorForCategoryRed;UIColor *colorForCategoryViolet;UIColor *colorForCategoryBlue;UIColor *colorForCategoryYellow;UIColor *colorForCategoryTurquoise; Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  13. 13. Page 13.For example, create a NSMutableDictionary with the desired key/value combinations and pass it to the libraryinitialization method:NSMutableDictionary *params = [[NSMutableDictionary alloc] init];[params setObject:[UIColor greenColor] forKey:@"colorForCategoryGreen"];[params setObject:[UIColor redColor] forKey:@"colorForCategoryRed"];[params setObject:[UIColor purpleColor] forKey:@"colorForCategoryViolet"];[params setObject:[UIColor blueColor] forKey:@"colorForCategoryBlue"];[params setObject:[UIColor yellowColor] forKey:@"colorForCategoryYellow"];[params setObject:[UIColor grayColor] forKey:@"colorForCategoryTurquoise"];then call:GamesList *gameList = [[GamesList alloc] initWithSecret:@"app_secret" appId:@"app_id" andParams:params];orDailyGift *gift = [[DailyGift alloc] initWithSecret:@"app_secret"! ! ! ! ! !! ! ! appId:@"app_id"! ! ! ! ! ! ! ! andParams:params]; Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved

×