Skip to content

Instantly share code, notes, and snippets.

@bobspace
Last active December 22, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobspace/6502238 to your computer and use it in GitHub Desktop.
Save bobspace/6502238 to your computer and use it in GitHub Desktop.
The Pixate-specific code you need to use Pixate in your iOS project.
#import <PXEngine/PXEngine.h>
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...your other code here...
//Must go above makeKeyAndVisible call, if it's there.
self.window.styleMode = PXStylingNormal;
[self.window makeKeyAndVisible]; // <-- This line won't be here,
// if you're using storyboards.
return YES;
}
view {
background-color: #ffffff
}
.btn-green {
color : #446620;
background-color : linear-gradient(#87c44a, #b4da77);
border-width : 1px;
border-color : #84a254;
border-style : solid;
border-radius : 10px;
font-size : 13px;
}
#import <UIKit/UIKit.h>
#import <PXEngine/PXEngine.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
[PXEngine licenseKey:@"YOUR LICENSE KEY" forUser:@"YOUR USER NAME"];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment