Hit fox framework v1.1
Upcoming SlideShare
Loading in...5
×
 

Hit fox framework v1.1

on

  • 508 views

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 ...

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.

Statistics

Views

Total Views
508
Views on SlideShare
508
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Hit fox framework v1.1 Hit fox framework v1.1 Presentation Transcript

  • Page 1.HitFox SDK v1.1iOS Integration Guide Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  • 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
  • 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
  • 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
  • Page 5. Prepared by theHitFox App Discovery GmbH. Engineering Team© 2012 - 2013 HitFox, GmbH. | All rights reserved
  • 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
  • Page 7.C. Link the Resources folder Prepared by the HitFox App Discovery GmbH. Engineering Team © 2012 - 2013 HitFox, GmbH. | All rights reserved
  • Page 8. Prepared by theHitFox App Discovery GmbH. Engineering Team© 2012 - 2013 HitFox, GmbH. | All rights reserved
  • 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
  • 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
  • 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
  • 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
  • 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