Last active
May 17, 2024 03:11
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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