Skip to content

Commit

Permalink
3.0 milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal3riel committed Mar 9, 2013
1 parent d9b77fb commit ab3b4fc
Show file tree
Hide file tree
Showing 91 changed files with 4,567 additions and 121 deletions.
Binary file modified Resources/Back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Back_button_item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Bar_item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Forward.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Item_highlighted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Item_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Navigation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Recent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
233 changes: 223 additions & 10 deletions Stage1st.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions Stage1st/InitialOrder.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<array>
<string>外野</string>
<string>动漫论坛</string>
<string>游戏论坛</string>
<string>PC数码</string>
<string>影视论坛</string>
</array>
<array>
<string>文史沙龙</string>
<string>彼岸文化</string>
<string>八卦体育</string>
<string>音乐论坛</string>
<string>二手交易区</string>
<string>英雄联盟</string>
<string>吃货</string>
<string>火暴</string>
<string>马叉虫</string>
<string>车欠女未</string>
<string>犭苗犭句</string>
<string>摄影区</string>
<string>开箱区</string>
<string>魔兽世界</string>
</array>
</array>
</plist>
24 changes: 21 additions & 3 deletions Stage1st/S1AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,36 @@ @implementation S1AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.

//User Defaults;
if (![[NSUserDefaults standardUserDefaults] valueForKey:@"Order"]) {
NSString *path = [[NSBundle mainBundle] pathForResource:@"InitialOrder" ofType:@"plist"];
NSArray *order = [NSArray arrayWithContentsOfFile:path];
[[NSUserDefaults standardUserDefaults] setValue:order forKey:@"Order"];
[[NSUserDefaults standardUserDefaults] synchronize];
}

if (![[NSUserDefaults standardUserDefaults] valueForKey:@"Display"]) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"Display"];
}

//URL Cache
S1URLCache *URLCache = [[S1URLCache alloc] initWithMemoryCapacity:4 * 1024 * 1024
diskCapacity:10 * 1024 * 1024
diskPath:nil];
[NSURLCache setSharedURLCache:URLCache];

//Appearence
[[UIToolbar appearance] setBackgroundImage:[UIImage imageNamed:@"Toolbar_background.png"] forToolbarPosition:UIToolbarPositionBottom barMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"Navigation.png"] forBarMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setBackgroundImage:[UIImage imageNamed:@"Bar_item.png"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:[[UIImage imageNamed:@"Back_button_item.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 14, 0, 7)] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];

self.window.backgroundColor = [UIColor blackColor];
S1TopicListViewController *controller = [[S1TopicListViewController alloc] init];
S1RootViewController *rootVC = [[S1RootViewController alloc] initWithMasterViewController:controller];
self.window.rootViewController = rootVC;

[[UIToolbar appearance] setBackgroundImage:[UIImage imageNamed:@"Toolbar_background.png"] forToolbarPosition:UIToolbarPositionBottom barMetrics:UIBarMetricsDefault];

[self.window makeKeyAndVisible];
return YES;
}
Expand Down
4 changes: 3 additions & 1 deletion Stage1st/S1ContentViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

#import <UIKit/UIKit.h>

@class S1Topic;
@class S1Topic, S1Tracer;

@interface S1ContentViewController : UIViewController

@property (nonatomic, copy) NSString *fid;
@property (nonatomic, strong) S1Topic *topic;
@property (nonatomic, strong) S1Tracer *tracer;


@end
Loading

0 comments on commit ab3b4fc

Please sign in to comment.