forked from iSCAU/iSCAU-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.m
44 lines (36 loc) · 982 Bytes
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// main.m
// iSCAU
//
// Created by Alvin on 13-8-20.
// Copyright (c) 2013年 Alvin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <UI7Kit/UI7Kit.h>
#import <UI7Kit/UI7PickerView.h>
#import "AppDelegate.h"
// clean the console output.
typedef int (*PYStdWriter)(void *, const char *, int);
static PYStdWriter _oldStdWrite;
int __pyStderrWrite(void *inFD, const char *buffer, int size)
{
if ( strncmp(buffer, "AssertMacros:", 13) == 0 ) {
return 0;
}
return _oldStdWrite(inFD, buffer, size);
}
void __iOS7B5CleanConsoleOutput(void)
{
_oldStdWrite = stderr->_write;
stderr->_write = __pyStderrWrite;
}
int main(int argc, char *argv[])
{
__iOS7B5CleanConsoleOutput();
@autoreleasepool {
[UI7Kit patchIfNeeded];
[UI7Button patch];
// [[UI7Kit kit] setTintColor:[UIColor colorWithR:66 g:96 b:153 a:1]];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}