First commit
17
README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
TBTabBar
|
||||
=============
|
||||
Based off of the custom UITabBar from TweetBot by TapBots
|
||||
|
||||

|
||||
|
||||
Great Design
|
||||
=============
|
||||
Based off of the beautiful UITabBar designs from TweetBot by TapBots.
|
||||
|
||||

|
||||
|
||||
Notifications
|
||||
=============
|
||||
Currently working on these...
|
||||
|
||||
 x
|
||||
32
TBTabBar.h
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// TBTabBar.h
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@protocol TBTabBarDelegate;
|
||||
@interface TBTabBar : UIView {
|
||||
NSMutableArray *_buttonData;
|
||||
NSMutableArray *_buttons;
|
||||
NSMutableArray *_statusLights;
|
||||
id<TBTabBarDelegate> delegate;
|
||||
}
|
||||
|
||||
@property (assign) id<TBTabBarDelegate> delegate;
|
||||
|
||||
-(id)initWithItems:(NSArray *)items;
|
||||
|
||||
-(void)showDefaults;
|
||||
|
||||
-(void)touchDownForButton:(UIButton*)button;
|
||||
-(void)touchUpForButton:(UIButton*)button;
|
||||
|
||||
@end
|
||||
|
||||
@protocol TBTabBarDelegate
|
||||
-(void)switchViewController:(UIViewController*)vc;
|
||||
@end
|
||||
148
TBTabBar.m
Normal file
@@ -0,0 +1,148 @@
|
||||
//
|
||||
// TBTabBar.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TBTabBar.h"
|
||||
#import "TBTabButton.h"
|
||||
#import "TBTabNotification.h"
|
||||
|
||||
@interface TBTabBar()
|
||||
|
||||
@property (retain) NSMutableArray *buttons;
|
||||
@property (retain) NSMutableArray *buttonData;
|
||||
@property (retain) NSMutableArray *statusLights;
|
||||
|
||||
-(void)setupButtons;
|
||||
-(void)setupLights;
|
||||
|
||||
@end
|
||||
|
||||
@implementation TBTabBar
|
||||
@synthesize buttons = _buttons, buttonData = _buttonData, statusLights = _statusLights, delegate;
|
||||
|
||||
-(id)initWithItems:(NSArray *)items {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
self.frame = CGRectMake(0, 415, 320, 45);
|
||||
self.backgroundColor = [UIColor blackColor];
|
||||
|
||||
if ([items count] > 5) {
|
||||
[NSException raise:@"Too Many Tabs" format:@"A maximum of 5 tabs are allowed in the TBTabBar. %d were asked to be rendered", [items count]];
|
||||
}
|
||||
self.buttonData = [[NSMutableArray alloc] initWithArray:items];
|
||||
|
||||
[self setupButtons];
|
||||
[self setupLights];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)setupButtons {
|
||||
NSInteger count = 0;
|
||||
NSInteger xExtra = 0;
|
||||
NSInteger buttonSize = floor(320 / [self.buttonData count]) - 1;
|
||||
self.buttons = [[NSMutableArray alloc] init];
|
||||
for (TBTabButton *info in self.buttonData) {
|
||||
NSInteger extra = 0;
|
||||
if ([self.buttonData count] % 2 == 1) {
|
||||
if ([self.buttonData count] == 5) {
|
||||
NSInteger i = (count + 1) + (floor([self.buttonData count] / 2));
|
||||
if (i == [self.buttonData count]) {
|
||||
extra = 1;
|
||||
} else if (i == [self.buttonData count]+1) {
|
||||
xExtra = 1;
|
||||
}
|
||||
} else if ([self.buttonData count] == 3) {
|
||||
buttonSize = floor(320 / [self.buttonData count]);
|
||||
}
|
||||
} else {
|
||||
if (count + 1 == 2) {
|
||||
extra = 1;
|
||||
} else if (count + 1 == 3) {
|
||||
xExtra = 1;
|
||||
}
|
||||
}
|
||||
NSInteger buttonX = (count * buttonSize) + count + xExtra;
|
||||
|
||||
UIButton *b = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
b.frame = CGRectMake(buttonX, 2, buttonSize + extra, 38);
|
||||
UIImage *tabBarButtonBackground = [[UIImage imageNamed:@"tabBarButtonBackground"] stretchableImageWithLeftCapWidth:1 topCapHeight:0];
|
||||
[b setImage:[info icon] forState:UIControlStateNormal];
|
||||
[b setImage:[info highlightedIcon] forState:UIControlStateHighlighted];
|
||||
[b setImage:[info highlightedIcon] forState:UIControlStateSelected];
|
||||
[b setBackgroundImage:tabBarButtonBackground forState:UIControlStateNormal];
|
||||
|
||||
[b addTarget:self action:@selector(touchDownForButton:) forControlEvents:UIControlEventTouchDown];
|
||||
[b addTarget:self action:@selector(touchUpForButton:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
[self addSubview:b];
|
||||
[self.buttons addObject:b];
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
-(void)setupLights {
|
||||
NSInteger count = 0;
|
||||
NSInteger xExtra = 0;
|
||||
NSInteger buttonSize = floor(320 / [self.buttonData count]) - 1;
|
||||
for (TBTabButton *info in self.buttonData) {
|
||||
NSInteger extra = 0;
|
||||
if ([self.buttonData count] % 2 == 1) {
|
||||
if ([self.buttonData count] == 5) {
|
||||
NSInteger i = (count + 1) + (floor([self.buttonData count] / 2));
|
||||
if (i == [self.buttonData count]) {
|
||||
extra = 1;
|
||||
} else if (i == [self.buttonData count]+1) {
|
||||
xExtra = 1;
|
||||
}
|
||||
} else if ([self.buttonData count] == 3) {
|
||||
buttonSize = floor(320 / [self.buttonData count]);
|
||||
}
|
||||
} else {
|
||||
if (count + 1 == 2) {
|
||||
extra = 1;
|
||||
} else if (count + 1 == 3) {
|
||||
xExtra = 1;
|
||||
}
|
||||
}
|
||||
NSInteger buttonX = (count * buttonSize) + count + xExtra;
|
||||
|
||||
[[info notificationView] updateImageView];
|
||||
[[info notificationView] setAllFrames:CGRectMake(buttonX, self.frame.size.height - 4, buttonSize + extra, 4)];
|
||||
[self addSubview:[info notificationView]];
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
-(void)showDefaults {
|
||||
[self touchDownForButton:[self.buttons objectAtIndex:0]];
|
||||
[self touchUpForButton:[self.buttons objectAtIndex:0]];
|
||||
}
|
||||
|
||||
-(void)touchDownForButton:(UIButton*)button {
|
||||
[button setSelected:YES];
|
||||
NSInteger i = [self.buttons indexOfObject:button];
|
||||
UIViewController *vc = [[self.buttonData objectAtIndex:i] viewController];
|
||||
[delegate switchViewController:vc];
|
||||
}
|
||||
|
||||
-(void)touchUpForButton:(UIButton*)button {
|
||||
for (UIButton *b in self.buttons) {
|
||||
[b setSelected:NO];
|
||||
}
|
||||
[button setSelected:YES];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[_buttons release];
|
||||
[_buttonData release];
|
||||
[_statusLights release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@end
|
||||
436
TweetBotTabBar.xcodeproj/project.pbxproj
Normal file
@@ -0,0 +1,436 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
E6F3954013B989B100DF98A9 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E6F3953F13B989B100DF98A9 /* UIKit.framework */; };
|
||||
E6F3954213B989B100DF98A9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E6F3954113B989B100DF98A9 /* Foundation.framework */; };
|
||||
E6F3954413B989B100DF98A9 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E6F3954313B989B100DF98A9 /* CoreGraphics.framework */; };
|
||||
E6F3954A13B989B100DF98A9 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E6F3954813B989B100DF98A9 /* InfoPlist.strings */; };
|
||||
E6F3954D13B989B100DF98A9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F3954C13B989B100DF98A9 /* main.m */; };
|
||||
E6F3955013B989B100DF98A9 /* TweetBotTabBarAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F3954F13B989B100DF98A9 /* TweetBotTabBarAppDelegate.m */; };
|
||||
E6F3955313B989B100DF98A9 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = E6F3955113B989B100DF98A9 /* MainWindow.xib */; };
|
||||
E6F3955613B989B100DF98A9 /* TweetBotTabBarViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F3955513B989B100DF98A9 /* TweetBotTabBarViewController.m */; };
|
||||
E6F3955913B989B100DF98A9 /* TweetBotTabBarViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E6F3955713B989B100DF98A9 /* TweetBotTabBarViewController.xib */; };
|
||||
E6F3957413B98A6900DF98A9 /* TBTabBar.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F3957313B98A6900DF98A9 /* TBTabBar.m */; };
|
||||
E6F3957713B98DAB00DF98A9 /* TBTabButton.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F3957613B98DAB00DF98A9 /* TBTabButton.m */; };
|
||||
E6F395AB13B9965C00DF98A9 /* tabBarNotificationLightOn.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3957913B9965C00DF98A9 /* tabBarNotificationLightOn.png */; };
|
||||
E6F395AC13B9965C00DF98A9 /* tabBarNotificationLightOn@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3957A13B9965C00DF98A9 /* tabBarNotificationLightOn@2x.png */; };
|
||||
E6F395AD13B9965C00DF98A9 /* tabBarNotificationLightOff.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3957B13B9965C00DF98A9 /* tabBarNotificationLightOff.png */; };
|
||||
E6F395AE13B9965C00DF98A9 /* tabBarNotificationLightOff@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3957C13B9965C00DF98A9 /* tabBarNotificationLightOff@2x.png */; };
|
||||
E6F395CB13B9965D00DF98A9 /* tabBarButtonBackground.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3959913B9965C00DF98A9 /* tabBarButtonBackground.png */; };
|
||||
E6F395CC13B9965D00DF98A9 /* tabBarButtonBackground@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3959A13B9965C00DF98A9 /* tabBarButtonBackground@2x.png */; };
|
||||
E6F395E713B9C28900DF98A9 /* TBTabNotification.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F395E613B9C28900DF98A9 /* TBTabNotification.m */; };
|
||||
E6F395EA13B9C93D00DF98A9 /* TBViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F395E913B9C93D00DF98A9 /* TBViewController.m */; };
|
||||
E6F395EE13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E6F395EC13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.m */; };
|
||||
E6F395EF13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E6F395ED13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.xib */; };
|
||||
E6F395F113B9D37F00DF98A9 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = E6F395F013B9D37F00DF98A9 /* README.md */; };
|
||||
E6F3960A13BA31BE00DF98A9 /* searchIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960213BA31BC00DF98A9 /* searchIcon.png */; };
|
||||
E6F3960B13BA31BE00DF98A9 /* searchIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960313BA31BC00DF98A9 /* searchIcon@2x.png */; };
|
||||
E6F3960C13BA31BE00DF98A9 /* searchIconHighlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960413BA31BD00DF98A9 /* searchIconHighlighted.png */; };
|
||||
E6F3960D13BA31BE00DF98A9 /* searchIconHighlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960513BA31BD00DF98A9 /* searchIconHighlighted@2x.png */; };
|
||||
E6F3960E13BA31BE00DF98A9 /* timelineIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960613BA31BD00DF98A9 /* timelineIcon.png */; };
|
||||
E6F3960F13BA31BE00DF98A9 /* timelineIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960713BA31BD00DF98A9 /* timelineIcon@2x.png */; };
|
||||
E6F3961013BA31BE00DF98A9 /* timelineIconHighlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960813BA31BD00DF98A9 /* timelineIconHighlighted.png */; };
|
||||
E6F3961113BA31BE00DF98A9 /* timelineIconHighlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3960913BA31BD00DF98A9 /* timelineIconHighlighted@2x.png */; };
|
||||
E6F3961613BA337F00DF98A9 /* messagesIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961213BA337E00DF98A9 /* messagesIcon.png */; };
|
||||
E6F3961713BA337F00DF98A9 /* messagesIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961313BA337E00DF98A9 /* messagesIcon@2x.png */; };
|
||||
E6F3961813BA337F00DF98A9 /* messagesIconHighlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961413BA337E00DF98A9 /* messagesIconHighlighted.png */; };
|
||||
E6F3961913BA337F00DF98A9 /* messagesIconHighlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961513BA337F00DF98A9 /* messagesIconHighlighted@2x.png */; };
|
||||
E6F3961E13BA346D00DF98A9 /* favoritesIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961A13BA346C00DF98A9 /* favoritesIcon.png */; };
|
||||
E6F3961F13BA346D00DF98A9 /* favoritesIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961B13BA346C00DF98A9 /* favoritesIcon@2x.png */; };
|
||||
E6F3962013BA346D00DF98A9 /* favoritesIconHighlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961C13BA346D00DF98A9 /* favoritesIconHighlighted.png */; };
|
||||
E6F3962113BA346D00DF98A9 /* favoritesIconHighlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3961D13BA346D00DF98A9 /* favoritesIconHighlighted@2x.png */; };
|
||||
E6F3962613BA366B00DF98A9 /* mentionsIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3962213BA366A00DF98A9 /* mentionsIcon.png */; };
|
||||
E6F3962713BA366B00DF98A9 /* mentionsIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3962313BA366A00DF98A9 /* mentionsIcon@2x.png */; };
|
||||
E6F3962813BA366B00DF98A9 /* mentionsIconHighlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3962413BA366B00DF98A9 /* mentionsIconHighlighted.png */; };
|
||||
E6F3962913BA366B00DF98A9 /* mentionsIconHighlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = E6F3962513BA366B00DF98A9 /* mentionsIconHighlighted@2x.png */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
E6F3953B13B989B100DF98A9 /* TweetBotTabBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TweetBotTabBar.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
E6F3953F13B989B100DF98A9 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
E6F3954113B989B100DF98A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
E6F3954313B989B100DF98A9 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
E6F3954713B989B100DF98A9 /* TweetBotTabBar-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TweetBotTabBar-Info.plist"; sourceTree = "<group>"; };
|
||||
E6F3954913B989B100DF98A9 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
E6F3954B13B989B100DF98A9 /* TweetBotTabBar-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "TweetBotTabBar-Prefix.pch"; sourceTree = "<group>"; };
|
||||
E6F3954C13B989B100DF98A9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
E6F3954E13B989B100DF98A9 /* TweetBotTabBarAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TweetBotTabBarAppDelegate.h; sourceTree = "<group>"; };
|
||||
E6F3954F13B989B100DF98A9 /* TweetBotTabBarAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TweetBotTabBarAppDelegate.m; sourceTree = "<group>"; };
|
||||
E6F3955213B989B100DF98A9 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = "<group>"; };
|
||||
E6F3955413B989B100DF98A9 /* TweetBotTabBarViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TweetBotTabBarViewController.h; sourceTree = "<group>"; };
|
||||
E6F3955513B989B100DF98A9 /* TweetBotTabBarViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TweetBotTabBarViewController.m; sourceTree = "<group>"; };
|
||||
E6F3955813B989B100DF98A9 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/TweetBotTabBarViewController.xib; sourceTree = "<group>"; };
|
||||
E6F3957213B98A6900DF98A9 /* TBTabBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TBTabBar.h; path = ../TBTabBar.h; sourceTree = "<group>"; };
|
||||
E6F3957313B98A6900DF98A9 /* TBTabBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TBTabBar.m; path = ../TBTabBar.m; sourceTree = "<group>"; };
|
||||
E6F3957513B98DAB00DF98A9 /* TBTabButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TBTabButton.h; sourceTree = "<group>"; };
|
||||
E6F3957613B98DAB00DF98A9 /* TBTabButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TBTabButton.m; sourceTree = "<group>"; };
|
||||
E6F3957913B9965C00DF98A9 /* tabBarNotificationLightOn.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tabBarNotificationLightOn.png; sourceTree = "<group>"; };
|
||||
E6F3957A13B9965C00DF98A9 /* tabBarNotificationLightOn@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tabBarNotificationLightOn@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3957B13B9965C00DF98A9 /* tabBarNotificationLightOff.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tabBarNotificationLightOff.png; sourceTree = "<group>"; };
|
||||
E6F3957C13B9965C00DF98A9 /* tabBarNotificationLightOff@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tabBarNotificationLightOff@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3959913B9965C00DF98A9 /* tabBarButtonBackground.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = tabBarButtonBackground.png; sourceTree = "<group>"; };
|
||||
E6F3959A13B9965C00DF98A9 /* tabBarButtonBackground@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "tabBarButtonBackground@2x.png"; sourceTree = "<group>"; };
|
||||
E6F395E513B9C28800DF98A9 /* TBTabNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TBTabNotification.h; sourceTree = "<group>"; };
|
||||
E6F395E613B9C28900DF98A9 /* TBTabNotification.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TBTabNotification.m; sourceTree = "<group>"; };
|
||||
E6F395E813B9C93D00DF98A9 /* TBViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TBViewController.h; sourceTree = "<group>"; };
|
||||
E6F395E913B9C93D00DF98A9 /* TBViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TBViewController.m; sourceTree = "<group>"; };
|
||||
E6F395EB13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TweetBotTabBarTestViewController.h; sourceTree = "<group>"; };
|
||||
E6F395EC13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TweetBotTabBarTestViewController.m; sourceTree = "<group>"; };
|
||||
E6F395ED13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TweetBotTabBarTestViewController.xib; sourceTree = "<group>"; };
|
||||
E6F395F013B9D37F00DF98A9 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = SOURCE_ROOT; };
|
||||
E6F3960213BA31BC00DF98A9 /* searchIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = searchIcon.png; sourceTree = "<group>"; };
|
||||
E6F3960313BA31BC00DF98A9 /* searchIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "searchIcon@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3960413BA31BD00DF98A9 /* searchIconHighlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = searchIconHighlighted.png; sourceTree = "<group>"; };
|
||||
E6F3960513BA31BD00DF98A9 /* searchIconHighlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "searchIconHighlighted@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3960613BA31BD00DF98A9 /* timelineIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = timelineIcon.png; sourceTree = "<group>"; };
|
||||
E6F3960713BA31BD00DF98A9 /* timelineIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "timelineIcon@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3960813BA31BD00DF98A9 /* timelineIconHighlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = timelineIconHighlighted.png; sourceTree = "<group>"; };
|
||||
E6F3960913BA31BD00DF98A9 /* timelineIconHighlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "timelineIconHighlighted@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3961213BA337E00DF98A9 /* messagesIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = messagesIcon.png; sourceTree = "<group>"; };
|
||||
E6F3961313BA337E00DF98A9 /* messagesIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "messagesIcon@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3961413BA337E00DF98A9 /* messagesIconHighlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = messagesIconHighlighted.png; sourceTree = "<group>"; };
|
||||
E6F3961513BA337F00DF98A9 /* messagesIconHighlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "messagesIconHighlighted@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3961A13BA346C00DF98A9 /* favoritesIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = favoritesIcon.png; sourceTree = "<group>"; };
|
||||
E6F3961B13BA346C00DF98A9 /* favoritesIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "favoritesIcon@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3961C13BA346D00DF98A9 /* favoritesIconHighlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = favoritesIconHighlighted.png; sourceTree = "<group>"; };
|
||||
E6F3961D13BA346D00DF98A9 /* favoritesIconHighlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "favoritesIconHighlighted@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3962213BA366A00DF98A9 /* mentionsIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mentionsIcon.png; sourceTree = "<group>"; };
|
||||
E6F3962313BA366A00DF98A9 /* mentionsIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mentionsIcon@2x.png"; sourceTree = "<group>"; };
|
||||
E6F3962413BA366B00DF98A9 /* mentionsIconHighlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mentionsIconHighlighted.png; sourceTree = "<group>"; };
|
||||
E6F3962513BA366B00DF98A9 /* mentionsIconHighlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mentionsIconHighlighted@2x.png"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
E6F3953813B989B100DF98A9 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
E6F3954013B989B100DF98A9 /* UIKit.framework in Frameworks */,
|
||||
E6F3954213B989B100DF98A9 /* Foundation.framework in Frameworks */,
|
||||
E6F3954413B989B100DF98A9 /* CoreGraphics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
E6F3953013B989B100DF98A9 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E6F3954513B989B100DF98A9 /* TweetBotTabBar */,
|
||||
E6F3957813B9963B00DF98A9 /* Resources */,
|
||||
E6F3953E13B989B100DF98A9 /* Frameworks */,
|
||||
E6F3953C13B989B100DF98A9 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E6F3953C13B989B100DF98A9 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E6F3953B13B989B100DF98A9 /* TweetBotTabBar.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E6F3953E13B989B100DF98A9 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E6F3953F13B989B100DF98A9 /* UIKit.framework */,
|
||||
E6F3954113B989B100DF98A9 /* Foundation.framework */,
|
||||
E6F3954313B989B100DF98A9 /* CoreGraphics.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E6F3954513B989B100DF98A9 /* TweetBotTabBar */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E6F3954E13B989B100DF98A9 /* TweetBotTabBarAppDelegate.h */,
|
||||
E6F3954F13B989B100DF98A9 /* TweetBotTabBarAppDelegate.m */,
|
||||
E6F3955113B989B100DF98A9 /* MainWindow.xib */,
|
||||
E6F3955413B989B100DF98A9 /* TweetBotTabBarViewController.h */,
|
||||
E6F3955513B989B100DF98A9 /* TweetBotTabBarViewController.m */,
|
||||
E6F3955713B989B100DF98A9 /* TweetBotTabBarViewController.xib */,
|
||||
E6F3957213B98A6900DF98A9 /* TBTabBar.h */,
|
||||
E6F3957313B98A6900DF98A9 /* TBTabBar.m */,
|
||||
E6F3957513B98DAB00DF98A9 /* TBTabButton.h */,
|
||||
E6F3957613B98DAB00DF98A9 /* TBTabButton.m */,
|
||||
E6F395E513B9C28800DF98A9 /* TBTabNotification.h */,
|
||||
E6F395E613B9C28900DF98A9 /* TBTabNotification.m */,
|
||||
E6F395E813B9C93D00DF98A9 /* TBViewController.h */,
|
||||
E6F395E913B9C93D00DF98A9 /* TBViewController.m */,
|
||||
E6F395EB13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.h */,
|
||||
E6F395EC13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.m */,
|
||||
E6F395ED13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.xib */,
|
||||
E6F3954613B989B100DF98A9 /* Supporting Files */,
|
||||
);
|
||||
path = TweetBotTabBar;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E6F3954613B989B100DF98A9 /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E6F3954713B989B100DF98A9 /* TweetBotTabBar-Info.plist */,
|
||||
E6F395F013B9D37F00DF98A9 /* README.md */,
|
||||
E6F3954813B989B100DF98A9 /* InfoPlist.strings */,
|
||||
E6F3954B13B989B100DF98A9 /* TweetBotTabBar-Prefix.pch */,
|
||||
E6F3954C13B989B100DF98A9 /* main.m */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E6F3957813B9963B00DF98A9 /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E6F3962213BA366A00DF98A9 /* mentionsIcon.png */,
|
||||
E6F3962313BA366A00DF98A9 /* mentionsIcon@2x.png */,
|
||||
E6F3962413BA366B00DF98A9 /* mentionsIconHighlighted.png */,
|
||||
E6F3962513BA366B00DF98A9 /* mentionsIconHighlighted@2x.png */,
|
||||
E6F3961A13BA346C00DF98A9 /* favoritesIcon.png */,
|
||||
E6F3961B13BA346C00DF98A9 /* favoritesIcon@2x.png */,
|
||||
E6F3961C13BA346D00DF98A9 /* favoritesIconHighlighted.png */,
|
||||
E6F3961D13BA346D00DF98A9 /* favoritesIconHighlighted@2x.png */,
|
||||
E6F3961213BA337E00DF98A9 /* messagesIcon.png */,
|
||||
E6F3961313BA337E00DF98A9 /* messagesIcon@2x.png */,
|
||||
E6F3961413BA337E00DF98A9 /* messagesIconHighlighted.png */,
|
||||
E6F3961513BA337F00DF98A9 /* messagesIconHighlighted@2x.png */,
|
||||
E6F3960213BA31BC00DF98A9 /* searchIcon.png */,
|
||||
E6F3960313BA31BC00DF98A9 /* searchIcon@2x.png */,
|
||||
E6F3960413BA31BD00DF98A9 /* searchIconHighlighted.png */,
|
||||
E6F3960513BA31BD00DF98A9 /* searchIconHighlighted@2x.png */,
|
||||
E6F3960613BA31BD00DF98A9 /* timelineIcon.png */,
|
||||
E6F3960713BA31BD00DF98A9 /* timelineIcon@2x.png */,
|
||||
E6F3960813BA31BD00DF98A9 /* timelineIconHighlighted.png */,
|
||||
E6F3960913BA31BD00DF98A9 /* timelineIconHighlighted@2x.png */,
|
||||
E6F3957913B9965C00DF98A9 /* tabBarNotificationLightOn.png */,
|
||||
E6F3957A13B9965C00DF98A9 /* tabBarNotificationLightOn@2x.png */,
|
||||
E6F3957B13B9965C00DF98A9 /* tabBarNotificationLightOff.png */,
|
||||
E6F3957C13B9965C00DF98A9 /* tabBarNotificationLightOff@2x.png */,
|
||||
E6F3959913B9965C00DF98A9 /* tabBarButtonBackground.png */,
|
||||
E6F3959A13B9965C00DF98A9 /* tabBarButtonBackground@2x.png */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
E6F3953A13B989B100DF98A9 /* TweetBotTabBar */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = E6F3955C13B989B100DF98A9 /* Build configuration list for PBXNativeTarget "TweetBotTabBar" */;
|
||||
buildPhases = (
|
||||
E6F3953713B989B100DF98A9 /* Sources */,
|
||||
E6F3953813B989B100DF98A9 /* Frameworks */,
|
||||
E6F3953913B989B100DF98A9 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = TweetBotTabBar;
|
||||
productName = TweetBotTabBar;
|
||||
productReference = E6F3953B13B989B100DF98A9 /* TweetBotTabBar.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
E6F3953213B989B100DF98A9 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
ORGANIZATIONNAME = i3Software;
|
||||
};
|
||||
buildConfigurationList = E6F3953513B989B100DF98A9 /* Build configuration list for PBXProject "TweetBotTabBar" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = E6F3953013B989B100DF98A9;
|
||||
productRefGroup = E6F3953C13B989B100DF98A9 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
E6F3953A13B989B100DF98A9 /* TweetBotTabBar */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
E6F3953913B989B100DF98A9 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
E6F3954A13B989B100DF98A9 /* InfoPlist.strings in Resources */,
|
||||
E6F3955313B989B100DF98A9 /* MainWindow.xib in Resources */,
|
||||
E6F3955913B989B100DF98A9 /* TweetBotTabBarViewController.xib in Resources */,
|
||||
E6F395AB13B9965C00DF98A9 /* tabBarNotificationLightOn.png in Resources */,
|
||||
E6F395AC13B9965C00DF98A9 /* tabBarNotificationLightOn@2x.png in Resources */,
|
||||
E6F395AD13B9965C00DF98A9 /* tabBarNotificationLightOff.png in Resources */,
|
||||
E6F395AE13B9965C00DF98A9 /* tabBarNotificationLightOff@2x.png in Resources */,
|
||||
E6F395CB13B9965D00DF98A9 /* tabBarButtonBackground.png in Resources */,
|
||||
E6F395CC13B9965D00DF98A9 /* tabBarButtonBackground@2x.png in Resources */,
|
||||
E6F395EF13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.xib in Resources */,
|
||||
E6F395F113B9D37F00DF98A9 /* README.md in Resources */,
|
||||
E6F3960A13BA31BE00DF98A9 /* searchIcon.png in Resources */,
|
||||
E6F3960B13BA31BE00DF98A9 /* searchIcon@2x.png in Resources */,
|
||||
E6F3960C13BA31BE00DF98A9 /* searchIconHighlighted.png in Resources */,
|
||||
E6F3960D13BA31BE00DF98A9 /* searchIconHighlighted@2x.png in Resources */,
|
||||
E6F3960E13BA31BE00DF98A9 /* timelineIcon.png in Resources */,
|
||||
E6F3960F13BA31BE00DF98A9 /* timelineIcon@2x.png in Resources */,
|
||||
E6F3961013BA31BE00DF98A9 /* timelineIconHighlighted.png in Resources */,
|
||||
E6F3961113BA31BE00DF98A9 /* timelineIconHighlighted@2x.png in Resources */,
|
||||
E6F3961613BA337F00DF98A9 /* messagesIcon.png in Resources */,
|
||||
E6F3961713BA337F00DF98A9 /* messagesIcon@2x.png in Resources */,
|
||||
E6F3961813BA337F00DF98A9 /* messagesIconHighlighted.png in Resources */,
|
||||
E6F3961913BA337F00DF98A9 /* messagesIconHighlighted@2x.png in Resources */,
|
||||
E6F3961E13BA346D00DF98A9 /* favoritesIcon.png in Resources */,
|
||||
E6F3961F13BA346D00DF98A9 /* favoritesIcon@2x.png in Resources */,
|
||||
E6F3962013BA346D00DF98A9 /* favoritesIconHighlighted.png in Resources */,
|
||||
E6F3962113BA346D00DF98A9 /* favoritesIconHighlighted@2x.png in Resources */,
|
||||
E6F3962613BA366B00DF98A9 /* mentionsIcon.png in Resources */,
|
||||
E6F3962713BA366B00DF98A9 /* mentionsIcon@2x.png in Resources */,
|
||||
E6F3962813BA366B00DF98A9 /* mentionsIconHighlighted.png in Resources */,
|
||||
E6F3962913BA366B00DF98A9 /* mentionsIconHighlighted@2x.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
E6F3953713B989B100DF98A9 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
E6F3954D13B989B100DF98A9 /* main.m in Sources */,
|
||||
E6F3955013B989B100DF98A9 /* TweetBotTabBarAppDelegate.m in Sources */,
|
||||
E6F3955613B989B100DF98A9 /* TweetBotTabBarViewController.m in Sources */,
|
||||
E6F3957413B98A6900DF98A9 /* TBTabBar.m in Sources */,
|
||||
E6F3957713B98DAB00DF98A9 /* TBTabButton.m in Sources */,
|
||||
E6F395E713B9C28900DF98A9 /* TBTabNotification.m in Sources */,
|
||||
E6F395EA13B9C93D00DF98A9 /* TBViewController.m in Sources */,
|
||||
E6F395EE13B9CC0B00DF98A9 /* TweetBotTabBarTestViewController.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
E6F3954813B989B100DF98A9 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
E6F3954913B989B100DF98A9 /* en */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E6F3955113B989B100DF98A9 /* MainWindow.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
E6F3955213B989B100DF98A9 /* en */,
|
||||
);
|
||||
name = MainWindow.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E6F3955713B989B100DF98A9 /* TweetBotTabBarViewController.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
E6F3955813B989B100DF98A9 /* en */,
|
||||
);
|
||||
name = TweetBotTabBarViewController.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
E6F3955A13B989B100DF98A9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
|
||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||
GCC_VERSION = com.apple.compilers.llvmgcc42;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
|
||||
SDKROOT = iphoneos;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
E6F3955B13B989B100DF98A9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_VERSION = com.apple.compilers.llvmgcc42;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
|
||||
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
|
||||
SDKROOT = iphoneos;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
E6F3955D13B989B100DF98A9 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "TweetBotTabBar/TweetBotTabBar-Prefix.pch";
|
||||
INFOPLIST_FILE = "TweetBotTabBar/TweetBotTabBar-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
E6F3955E13B989B100DF98A9 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "TweetBotTabBar/TweetBotTabBar-Prefix.pch";
|
||||
INFOPLIST_FILE = "TweetBotTabBar/TweetBotTabBar-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
E6F3953513B989B100DF98A9 /* Build configuration list for PBXProject "TweetBotTabBar" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
E6F3955A13B989B100DF98A9 /* Debug */,
|
||||
E6F3955B13B989B100DF98A9 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
E6F3955C13B989B100DF98A9 /* Build configuration list for PBXNativeTarget "TweetBotTabBar" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
E6F3955D13B989B100DF98A9 /* Debug */,
|
||||
E6F3955E13B989B100DF98A9 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = E6F3953213B989B100DF98A9 /* Project object */;
|
||||
}
|
||||
7
TweetBotTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:TweetBotTabBar.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
33805
TweetBotTabBar.xcodeproj/project.xcworkspace/xcuserdata/Jerish.xcuserdatad/UserInterfaceState.xcuserstate
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Bucket
|
||||
type = "1"
|
||||
version = "1.0">
|
||||
</Bucket>
|
||||
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "E6F3953A13B989B100DF98A9"
|
||||
BuildableName = "TweetBotTabBar.app"
|
||||
BlueprintName = "TweetBotTabBar"
|
||||
ReferencedContainer = "container:TweetBotTabBar.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
buildConfiguration = "Debug">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||
displayScaleIsEnabled = "NO"
|
||||
displayScale = "1.00"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Debug">
|
||||
<BuildableProductRunnable>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "E6F3953A13B989B100DF98A9"
|
||||
BuildableName = "TweetBotTabBar.app"
|
||||
BlueprintName = "TweetBotTabBar"
|
||||
ReferencedContainer = "container:TweetBotTabBar.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
displayScaleIsEnabled = "NO"
|
||||
displayScale = "1.00"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release">
|
||||
<BuildableProductRunnable>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "E6F3953A13B989B100DF98A9"
|
||||
BuildableName = "TweetBotTabBar.app"
|
||||
BlueprintName = "TweetBotTabBar"
|
||||
ReferencedContainer = "container:TweetBotTabBar.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?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">
|
||||
<dict>
|
||||
<key>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>TweetBotTabBar.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
<dict>
|
||||
<key>E6F3953A13B989B100DF98A9</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
TweetBotTabBar/.DS_Store
vendored
Normal file
34
TweetBotTabBar/TBTabButton.h
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// TBTabButton.h
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "TBViewController.h"
|
||||
#import "TBTabNotification.h"
|
||||
|
||||
@interface TBTabButton : NSObject {
|
||||
UIImage *icon;
|
||||
UIImage *highlightedIcon;
|
||||
NSMutableArray *_notifications;
|
||||
TBViewController *_viewController;
|
||||
TBTabNotification *_light;
|
||||
}
|
||||
|
||||
@property (retain) UIImage *icon;
|
||||
@property (retain) UIImage *highlightedIcon;
|
||||
@property (retain, nonatomic) TBViewController *viewController;
|
||||
|
||||
-(id)initWithIcon:(UIImage*)icon;
|
||||
|
||||
-(void)addNotification:(NSDictionary *)notif;
|
||||
-(void)removeNotificationAtIndex:(NSUInteger)index;
|
||||
-(void)clearNotifications;
|
||||
-(NSInteger)notificationCount;
|
||||
|
||||
-(TBTabNotification*)notificationView;
|
||||
|
||||
@end
|
||||
71
TweetBotTabBar/TBTabButton.m
Normal file
@@ -0,0 +1,71 @@
|
||||
//
|
||||
// TBTabButton.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TBTabButton.h"
|
||||
|
||||
|
||||
@interface TBTabButton()
|
||||
|
||||
@property (retain) NSMutableArray *notifications;
|
||||
@property (retain) TBTabNotification *light;
|
||||
|
||||
@end
|
||||
|
||||
@implementation TBTabButton
|
||||
@synthesize notifications = _notifications, viewController = _viewController, light = _light, icon, highlightedIcon;
|
||||
|
||||
-(id)initWithIcon:(UIImage*)nIcon {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
self.icon = nIcon;
|
||||
self.light = [[TBTabNotification alloc] initWithFrame:CGRectMake(0, 0, 63, 4)];
|
||||
self.notifications = [[NSMutableArray alloc] init];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)setViewController:(TBViewController *)viewController {
|
||||
_viewController = [viewController retain];
|
||||
self.viewController.tabBarButton = self;
|
||||
}
|
||||
|
||||
-(TBTabNotification*)notificationView {
|
||||
return self.light;
|
||||
}
|
||||
|
||||
-(void)addNotification:(NSDictionary *)notif {
|
||||
[self.notifications insertObject:notif atIndex:0];
|
||||
[self.light addNotifications:1];
|
||||
}
|
||||
|
||||
-(void)removeNotificationAtIndex:(NSUInteger)index {
|
||||
if ([self.notifications count] > 0) {
|
||||
[self.notifications removeObjectAtIndex:index];
|
||||
[self.light removeNotifications:1];
|
||||
}
|
||||
}
|
||||
|
||||
-(void)clearNotifications {
|
||||
[self.light removeNotifications:[self.notifications count]];
|
||||
[self.notifications removeAllObjects];
|
||||
}
|
||||
|
||||
-(NSInteger)notificationCount {
|
||||
return [self.notifications count];
|
||||
}
|
||||
|
||||
-(void)dealloc {
|
||||
[icon release];
|
||||
[highlightedIcon release];
|
||||
[_light release];
|
||||
[_viewController release];
|
||||
[_notifications release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@end
|
||||
25
TweetBotTabBar/TBTabNotification.h
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// TBTabNotification.h
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/28/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
|
||||
@interface TBTabNotification : UIView {
|
||||
UIImageView *imageView;
|
||||
|
||||
NSInteger notificationCount;
|
||||
}
|
||||
|
||||
-(NSInteger)notificationCount;
|
||||
-(void)addNotifications:(NSInteger)n;
|
||||
-(void)removeNotifications:(NSInteger)n;
|
||||
|
||||
-(void)setAllFrames:(CGRect)frame;
|
||||
-(void)updateImageView;
|
||||
|
||||
@end
|
||||
75
TweetBotTabBar/TBTabNotification.m
Normal file
@@ -0,0 +1,75 @@
|
||||
//
|
||||
// TBTabNotification.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/28/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TBTabNotification.h"
|
||||
|
||||
|
||||
@implementation TBTabNotification
|
||||
|
||||
- (id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
self = [super initWithFrame:frame];
|
||||
if (self) {
|
||||
notificationCount = 0;
|
||||
imageView = [[UIImageView alloc] init];
|
||||
imageView.frame = self.frame;
|
||||
[self addSubview:imageView];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)setAllFrames:(CGRect)frame {
|
||||
self.frame = frame;
|
||||
imageView.frame = CGRectMake(0, 0, frame.size.width, frame.size.height);
|
||||
}
|
||||
|
||||
-(NSInteger)notificationCount {
|
||||
return notificationCount;
|
||||
}
|
||||
|
||||
-(void)addNotifications:(NSInteger)n {
|
||||
if (n > 0) {
|
||||
notificationCount += n;
|
||||
}
|
||||
[self updateImageView];
|
||||
}
|
||||
|
||||
-(void)removeNotifications:(NSInteger)n {
|
||||
if (n > 0) {
|
||||
notificationCount -= n;
|
||||
}
|
||||
if (notificationCount < 0) notificationCount = 0;
|
||||
[self updateImageView];
|
||||
}
|
||||
|
||||
-(void)updateImageView {
|
||||
NSString *notificationLightIconFile;
|
||||
if ([self notificationCount] <= 0) {
|
||||
notificationLightIconFile = @"tabBarNotificationLightOff";
|
||||
} else {
|
||||
notificationLightIconFile = @"tabBarNotificationLightOn";
|
||||
}
|
||||
UIImage *notificationLight = [[UIImage imageNamed:notificationLightIconFile] stretchableImageWithLeftCapWidth:1 topCapHeight:0];
|
||||
imageView.image = notificationLight;
|
||||
}
|
||||
|
||||
/*
|
||||
// Only override drawRect: if you perform custom drawing.
|
||||
// An empty implementation adversely affects performance during animation.
|
||||
- (void)drawRect:(CGRect)rect
|
||||
{
|
||||
// Drawing code
|
||||
}
|
||||
*/
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@end
|
||||
19
TweetBotTabBar/TBViewController.h
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// TBViewController.h
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/28/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@class TBTabButton;
|
||||
|
||||
@interface TBViewController : UIViewController {
|
||||
TBTabButton *tabBarButton;
|
||||
}
|
||||
|
||||
@property (retain) TBTabButton *tabBarButton;
|
||||
|
||||
@end
|
||||
68
TweetBotTabBar/TBViewController.m
Normal file
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// TBViewController.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/28/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TBViewController.h"
|
||||
|
||||
|
||||
@implementation TBViewController
|
||||
@synthesize tabBarButton;
|
||||
|
||||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
||||
{
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
// Custom initialization
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[tabBarButton release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
// Releases the view if it doesn't have a superview.
|
||||
[super didReceiveMemoryWarning];
|
||||
|
||||
// Release any cached data, images, etc that aren't in use.
|
||||
}
|
||||
|
||||
#pragma mark - View lifecycle
|
||||
|
||||
/*
|
||||
// Implement loadView to create a view hierarchy programmatically, without using a nib.
|
||||
- (void)loadView
|
||||
{
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
}
|
||||
*/
|
||||
|
||||
- (void)viewDidUnload
|
||||
{
|
||||
[super viewDidUnload];
|
||||
// Release any retained subviews of the main view.
|
||||
// e.g. self.myOutlet = nil;
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
{
|
||||
// Return YES for supported orientations
|
||||
return (interfaceOrientation == UIInterfaceOrientationPortrait);
|
||||
}
|
||||
|
||||
@end
|
||||
38
TweetBotTabBar/TweetBotTabBar-Info.plist
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.i3software.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainWindow</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
17
TweetBotTabBar/TweetBotTabBar-Prefix.pch
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Prefix header for all source files of the 'TweetBotTabBar' target in the 'TweetBotTabBar' project
|
||||
//
|
||||
|
||||
#import <Availability.h>
|
||||
|
||||
#define SELECTED_VIEW_CONTROLLER_TAG 98456345
|
||||
#define NOTIFICATION_IMAGE_VIEW_TAG 98456346
|
||||
|
||||
#ifndef __IPHONE_3_0
|
||||
#warning "This project uses features only available in iPhone SDK 3.0 and later."
|
||||
#endif
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
21
TweetBotTabBar/TweetBotTabBarAppDelegate.h
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// TweetBotTabBarAppDelegate.h
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@class TweetBotTabBarViewController;
|
||||
|
||||
@interface TweetBotTabBarAppDelegate : NSObject <UIApplicationDelegate> {
|
||||
|
||||
}
|
||||
|
||||
@property (nonatomic, retain) IBOutlet UIWindow *window;
|
||||
|
||||
@property (nonatomic, retain) IBOutlet TweetBotTabBarViewController *viewController;
|
||||
|
||||
@end
|
||||
75
TweetBotTabBar/TweetBotTabBarAppDelegate.m
Normal file
@@ -0,0 +1,75 @@
|
||||
//
|
||||
// TweetBotTabBarAppDelegate.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TweetBotTabBarAppDelegate.h"
|
||||
|
||||
#import "TweetBotTabBarViewController.h"
|
||||
|
||||
@implementation TweetBotTabBarAppDelegate
|
||||
|
||||
|
||||
@synthesize window=_window;
|
||||
|
||||
@synthesize viewController=_viewController;
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
// Override point for customization after application launch.
|
||||
|
||||
self.window.rootViewController = self.viewController;
|
||||
[self.window makeKeyAndVisible];
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)applicationWillResignActive:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)applicationDidEnterBackground:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)applicationWillEnterForeground:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)applicationDidBecomeActive:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)applicationWillTerminate:(UIApplication *)application
|
||||
{
|
||||
/*
|
||||
Called when the application is about to terminate.
|
||||
Save data if appropriate.
|
||||
See also applicationDidEnterBackground:.
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[_window release];
|
||||
[_viewController release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@end
|
||||
21
TweetBotTabBar/TweetBotTabBarTestViewController.h
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// TweetBotTabBarTestViewController.h
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/28/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "TBTabButton.h"
|
||||
#import "TBViewController.h"
|
||||
|
||||
@interface TweetBotTabBarTestViewController : TBViewController {
|
||||
|
||||
UILabel *notificationCount;
|
||||
}
|
||||
- (IBAction)addNotificationButtonUp:(id)sender;
|
||||
- (IBAction)removeNotificationButtonUp:(id)sender;
|
||||
@property (nonatomic, retain) IBOutlet UILabel *notificationCount;
|
||||
|
||||
@end
|
||||
69
TweetBotTabBar/TweetBotTabBarTestViewController.m
Normal file
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// TweetBotTabBarTestViewController.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/28/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TweetBotTabBarTestViewController.h"
|
||||
|
||||
|
||||
@implementation TweetBotTabBarTestViewController
|
||||
@synthesize notificationCount;
|
||||
|
||||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
||||
{
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
// Custom initialization
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[notificationCount release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
// Releases the view if it doesn't have a superview.
|
||||
[super didReceiveMemoryWarning];
|
||||
|
||||
// Release any cached data, images, etc that aren't in use.
|
||||
}
|
||||
|
||||
#pragma mark - View lifecycle
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view from its nib.
|
||||
}
|
||||
|
||||
- (void)viewDidUnload
|
||||
{
|
||||
[self setNotificationCount:nil];
|
||||
[super viewDidUnload];
|
||||
// Release any retained subviews of the main view.
|
||||
// e.g. self.myOutlet = nil;
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
{
|
||||
// Return YES for supported orientations
|
||||
return (interfaceOrientation == UIInterfaceOrientationPortrait);
|
||||
}
|
||||
|
||||
- (IBAction)addNotificationButtonUp:(id)sender {
|
||||
[self.tabBarButton addNotification:[NSDictionary dictionary]];
|
||||
self.notificationCount.text = [NSString stringWithFormat:@"%d", [self.tabBarButton notificationCount]];
|
||||
}
|
||||
|
||||
- (IBAction)removeNotificationButtonUp:(id)sender {
|
||||
[self.tabBarButton removeNotificationAtIndex:0];
|
||||
self.notificationCount.text = [NSString stringWithFormat:@"%d", [self.tabBarButton notificationCount]];
|
||||
}
|
||||
@end
|
||||
363
TweetBotTabBar/TweetBotTabBarTestViewController.xib
Normal file
@@ -0,0 +1,363 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1056</int>
|
||||
<string key="IBDocument.SystemVersion">10J869</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">1305</string>
|
||||
<string key="IBDocument.AppKitVersion">1038.35</string>
|
||||
<string key="IBDocument.HIToolboxVersion">461.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">300</string>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>IBUIButton</string>
|
||||
<string>IBUIView</string>
|
||||
<string>IBUILabel</string>
|
||||
<string>IBProxyObject</string>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="372490531">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="975951072">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="191373211">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIButton" id="480100910">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{20, 20}, {280, 37}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="657752965"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<object class="NSFont" key="IBUIFont" id="937896307">
|
||||
<string key="NSName">Helvetica-Bold</string>
|
||||
<double key="NSSize">15</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<int key="IBUIButtonType">1</int>
|
||||
<string key="IBUINormalTitle">Add Notification</string>
|
||||
<object class="NSColor" key="IBUIHighlightedTitleColor" id="156192893">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
</object>
|
||||
<object class="NSColor" key="IBUINormalTitleColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
|
||||
</object>
|
||||
<object class="NSColor" key="IBUINormalTitleShadowColor" id="828299110">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC41AA</bytes>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBUIButton" id="657752965">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{20, 65}, {280, 37}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="201470086"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<int key="IBUIContentHorizontalAlignment">0</int>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<reference key="IBUIFont" ref="937896307"/>
|
||||
<int key="IBUIButtonType">1</int>
|
||||
<string key="IBUINormalTitle">Remove Notification</string>
|
||||
<reference key="IBUIHighlightedTitleColor" ref="156192893"/>
|
||||
<object class="NSColor" key="IBUINormalTitleColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
|
||||
</object>
|
||||
<reference key="IBUINormalTitleShadowColor" ref="828299110"/>
|
||||
</object>
|
||||
<object class="IBUILabel" id="201470086">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{20, 110}, {141, 21}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="699111025"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClipsSubviews">YES</bool>
|
||||
<int key="IBUIContentMode">7</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<string key="IBUIText">Notification Count:</string>
|
||||
<object class="NSFont" key="IBUIFont" id="349809744">
|
||||
<string key="NSName">Helvetica</string>
|
||||
<double key="NSSize">17</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<object class="NSColor" key="IBUITextColor" id="456277242">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MCAwIDAAA</bytes>
|
||||
</object>
|
||||
<nil key="IBUIHighlightedColor"/>
|
||||
<int key="IBUIBaselineAdjustment">1</int>
|
||||
<float key="IBUIMinimumFontSize">10</float>
|
||||
</object>
|
||||
<object class="IBUILabel" id="699111025">
|
||||
<reference key="NSNextResponder" ref="191373211"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrame">{{169, 110}, {131, 21}}</string>
|
||||
<reference key="NSSuperview" ref="191373211"/>
|
||||
<reference key="NSWindow"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClipsSubviews">YES</bool>
|
||||
<int key="IBUIContentMode">7</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<string key="IBUIText">0</string>
|
||||
<reference key="IBUIFont" ref="349809744"/>
|
||||
<reference key="IBUITextColor" ref="456277242"/>
|
||||
<nil key="IBUIHighlightedColor"/>
|
||||
<int key="IBUIBaselineAdjustment">1</int>
|
||||
<float key="IBUIMinimumFontSize">10</float>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<reference key="NSWindow"/>
|
||||
<reference key="NSNextKeyView" ref="480100910"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="191373211"/>
|
||||
</object>
|
||||
<int key="connectionID">3</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">addNotificationButtonUp:</string>
|
||||
<reference key="source" ref="480100910"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">9</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchEventConnection" key="connection">
|
||||
<string key="label">removeNotificationButtonUp:</string>
|
||||
<reference key="source" ref="657752965"/>
|
||||
<reference key="destination" ref="372490531"/>
|
||||
<int key="IBEventType">7</int>
|
||||
</object>
|
||||
<int key="connectionID">10</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">notificationCount</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="699111025"/>
|
||||
</object>
|
||||
<int key="connectionID">11</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<reference key="object" ref="0"/>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">1</int>
|
||||
<reference key="object" ref="191373211"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="480100910"/>
|
||||
<reference ref="657752965"/>
|
||||
<reference ref="201470086"/>
|
||||
<reference ref="699111025"/>
|
||||
</object>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="372490531"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="975951072"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">4</int>
|
||||
<reference key="object" ref="480100910"/>
|
||||
<reference key="parent" ref="191373211"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">5</int>
|
||||
<reference key="object" ref="657752965"/>
|
||||
<reference key="parent" ref="191373211"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">6</int>
|
||||
<reference key="object" ref="201470086"/>
|
||||
<reference key="parent" ref="191373211"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">7</int>
|
||||
<reference key="object" ref="699111025"/>
|
||||
<reference key="parent" ref="191373211"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>1.IBEditorWindowLastContentRect</string>
|
||||
<string>1.IBPluginDependency</string>
|
||||
<string>4.IBPluginDependency</string>
|
||||
<string>5.IBPluginDependency</string>
|
||||
<string>6.IBPluginDependency</string>
|
||||
<string>7.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>TweetBotTabBarTestViewController</string>
|
||||
<string>UIResponder</string>
|
||||
<string>{{556, 412}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<reference key="dict.values" ref="0"/>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">11</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">TBViewController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/TBViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">TweetBotTabBarTestViewController</string>
|
||||
<string key="superclassName">TBViewController</string>
|
||||
<object class="NSMutableDictionary" key="actions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>addNotificationButtonUp:</string>
|
||||
<string>removeNotificationButtonUp:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>id</string>
|
||||
<string>id</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>addNotificationButtonUp:</string>
|
||||
<string>removeNotificationButtonUp:</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">addNotificationButtonUp:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
<object class="IBActionInfo">
|
||||
<string key="name">removeNotificationButtonUp:</string>
|
||||
<string key="candidateClassName">id</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<string key="NS.key.0">notificationCount</string>
|
||||
<string key="NS.object.0">UILabel</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
<string key="NS.key.0">notificationCount</string>
|
||||
<object class="IBToOneOutletInfo" key="NS.object.0">
|
||||
<string key="name">notificationCount</string>
|
||||
<string key="candidateClassName">UILabel</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">./Classes/TweetBotTabBarTestViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3000" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">300</string>
|
||||
</data>
|
||||
</archive>
|
||||
16
TweetBotTabBar/TweetBotTabBarViewController.h
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// TweetBotTabBarViewController.h
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "TBTabBar.h"
|
||||
|
||||
@interface TweetBotTabBarViewController : UIViewController<TBTabBarDelegate> {
|
||||
TBTabBar *tabBar;
|
||||
}
|
||||
|
||||
@end
|
||||
88
TweetBotTabBar/TweetBotTabBarViewController.m
Normal file
@@ -0,0 +1,88 @@
|
||||
//
|
||||
// TweetBotTabBarViewController.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TweetBotTabBarViewController.h"
|
||||
#import "TBTabButton.h"
|
||||
#import "TBViewController.h"
|
||||
#import "TweetBotTabBarTestViewController.h"
|
||||
|
||||
@implementation TweetBotTabBarViewController
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[tabBar release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
// Releases the view if it doesn't have a superview.
|
||||
[super didReceiveMemoryWarning];
|
||||
|
||||
// Release any cached data, images, etc that aren't in use.
|
||||
}
|
||||
|
||||
#pragma mark - View lifecycle
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
TweetBotTabBarTestViewController *vc1 = [[[TweetBotTabBarTestViewController alloc] init] autorelease];
|
||||
TweetBotTabBarTestViewController *vc2 = [[[TweetBotTabBarTestViewController alloc] init] autorelease];
|
||||
TBViewController *vc3 = [[[TBViewController alloc] init] autorelease];
|
||||
vc3.view.backgroundColor = [UIColor darkGrayColor];
|
||||
|
||||
TBTabButton *t1 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"timelineIcon"]] autorelease];
|
||||
t1.highlightedIcon = [UIImage imageNamed:@"timelineIconHighlighted"];
|
||||
t1.viewController = vc1;
|
||||
TBTabButton *t2 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"mentionsIcon"]] autorelease];
|
||||
t2.highlightedIcon = [UIImage imageNamed:@"mentionsIconHighlighted"];
|
||||
t2.viewController = vc2;
|
||||
TBTabButton *t3 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"messagesIcon"]] autorelease];
|
||||
t3.highlightedIcon = [UIImage imageNamed:@"messagesIconHighlighted"];
|
||||
t3.viewController = vc3;
|
||||
TBTabButton *t4 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"favoritesIcon"]] autorelease];
|
||||
t4.highlightedIcon = [UIImage imageNamed:@"favoritesIconHighlighted"];
|
||||
t4.viewController = vc3;
|
||||
TBTabButton *t5 = [[[TBTabButton alloc] initWithIcon:[UIImage imageNamed:@"searchIcon"]] autorelease];
|
||||
t5.highlightedIcon = [UIImage imageNamed:@"searchIconHighlighted"];
|
||||
t5.viewController = vc3;
|
||||
NSArray *a = [NSArray arrayWithObjects:t1, t2, t3, t4, t5, nil];
|
||||
tabBar = [[TBTabBar alloc] initWithItems:a];
|
||||
tabBar.delegate = self;
|
||||
[self.view addSubview:tabBar];
|
||||
[tabBar showDefaults];
|
||||
}
|
||||
|
||||
-(void)switchViewController:(UIViewController *)viewController {
|
||||
UIView *currentView = [self.view viewWithTag:SELECTED_VIEW_CONTROLLER_TAG];
|
||||
[currentView removeFromSuperview];
|
||||
|
||||
viewController.view.frame = CGRectMake(0,0,self.view.bounds.size.width, self.view.bounds.size.height-(tabBar.frame.size.height));
|
||||
|
||||
viewController.view.tag = SELECTED_VIEW_CONTROLLER_TAG;
|
||||
|
||||
[self.view insertSubview:viewController.view belowSubview:tabBar];
|
||||
}
|
||||
|
||||
- (void)viewDidUnload
|
||||
{
|
||||
[super viewDidUnload];
|
||||
// Release any retained subviews of the main view.
|
||||
// e.g. self.myOutlet = nil;
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
{
|
||||
// Return YES for supported orientations
|
||||
return (interfaceOrientation == UIInterfaceOrientationPortrait);
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
2
TweetBotTabBar/en.lproj/InfoPlist.strings
Normal file
@@ -0,0 +1,2 @@
|
||||
/* Localized versions of Info.plist keys */
|
||||
|
||||
444
TweetBotTabBar/en.lproj/MainWindow.xib
Normal file
@@ -0,0 +1,444 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1024</int>
|
||||
<string key="IBDocument.SystemVersion">10D571</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">786</string>
|
||||
<string key="IBDocument.AppKitVersion">1038.29</string>
|
||||
<string key="IBDocument.HIToolboxVersion">460.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">112</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="10"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="841351856">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="427554174">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUICustomObject" id="664661524">
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIViewController" id="943309135">
|
||||
<string key="IBUINibName">TweetBotTabBarViewController</string>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
|
||||
<int key="interfaceOrientation">1</int>
|
||||
</object>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<bool key="IBUIHorizontal">NO</bool>
|
||||
</object>
|
||||
<object class="IBUIWindow" id="117978783">
|
||||
<nil key="NSNextResponder"/>
|
||||
<int key="NSvFlags">292</int>
|
||||
<string key="NSFrameSize">{320, 480}</string>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MSAxIDEAA</bytes>
|
||||
</object>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<bool key="IBUIResizesToFullScreen">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">delegate</string>
|
||||
<reference key="source" ref="841351856"/>
|
||||
<reference key="destination" ref="664661524"/>
|
||||
</object>
|
||||
<int key="connectionID">4</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">viewController</string>
|
||||
<reference key="source" ref="664661524"/>
|
||||
<reference key="destination" ref="943309135"/>
|
||||
</object>
|
||||
<int key="connectionID">11</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">window</string>
|
||||
<reference key="source" ref="664661524"/>
|
||||
<reference key="destination" ref="117978783"/>
|
||||
</object>
|
||||
<int key="connectionID">14</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<reference key="object" ref="0"/>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="841351856"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">3</int>
|
||||
<reference key="object" ref="664661524"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">TweetBotTabBar App Delegate</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="427554174"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">10</int>
|
||||
<reference key="object" ref="943309135"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">12</int>
|
||||
<reference key="object" ref="117978783"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>10.CustomClassName</string>
|
||||
<string>10.IBEditorWindowLastContentRect</string>
|
||||
<string>10.IBPluginDependency</string>
|
||||
<string>12.IBEditorWindowLastContentRect</string>
|
||||
<string>12.IBPluginDependency</string>
|
||||
<string>3.CustomClassName</string>
|
||||
<string>3.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>UIApplication</string>
|
||||
<string>UIResponder</string>
|
||||
<string>TweetBotTabBarViewController</string>
|
||||
<string>{{234, 376}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>{{525, 346}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>TweetBotTabBarAppDelegate</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">15</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIWindow</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBUserSource</string>
|
||||
<string key="minorKey"/>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">TweetBotTabBarAppDelegate</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>viewController</string>
|
||||
<string>window</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>TweetBotTabBarViewController</string>
|
||||
<string>UIWindow</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>viewController</string>
|
||||
<string>window</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">viewController</string>
|
||||
<string key="candidateClassName">TweetBotTabBarViewController</string>
|
||||
</object>
|
||||
<object class="IBToOneOutletInfo">
|
||||
<string key="name">window</string>
|
||||
<string key="candidateClassName">UIWindow</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">TweetBotTabBarAppDelegate.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">TweetBotTabBarAppDelegate</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBUserSource</string>
|
||||
<string key="minorKey"/>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">TweetBotTabBarViewController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">TweetBotTabBarViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSError.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="356479594">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIApplication</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIApplication.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIResponder</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<reference key="sourceIdentifier" ref="356479594"/>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchBar</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UISearchDisplayController</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIView</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIViewController</string>
|
||||
<string key="superclassName">UIResponder</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">UIWindow</string>
|
||||
<string key="superclassName">UIView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBFrameworkSource</string>
|
||||
<string key="minorKey">UIKit.framework/Headers/UIWindow.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
|
||||
<integer value="1024" key="NS.object.0"/>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3100" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<string key="IBDocument.LastKnownRelativeProjectPath">TweetBotTabBar.xcodeproj</string>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">112</string>
|
||||
</data>
|
||||
</archive>
|
||||
156
TweetBotTabBar/en.lproj/TweetBotTabBarViewController.xib
Normal file
@@ -0,0 +1,156 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">800</int>
|
||||
<string key="IBDocument.SystemVersion">10C540</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">759</string>
|
||||
<string key="IBDocument.AppKitVersion">1038.25</string>
|
||||
<string key="IBDocument.HIToolboxVersion">458.00</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string key="NS.object.0">77</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="6"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="IBDocument.Metadata">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys" id="0">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBProxyObject" id="372490531">
|
||||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="843779117">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
<object class="IBUIView" id="774585933">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<string key="NSFrameSize">{320, 460}</string>
|
||||
<reference key="NSSuperview"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MC43NQA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
|
||||
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBObjectContainer" key="IBDocument.Objects">
|
||||
<object class="NSMutableArray" key="connectionRecords">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">view</string>
|
||||
<reference key="source" ref="372490531"/>
|
||||
<reference key="destination" ref="774585933"/>
|
||||
</object>
|
||||
<int key="connectionID">7</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">0</int>
|
||||
<reference key="object" ref="0"/>
|
||||
<reference key="children" ref="1000"/>
|
||||
<nil key="parent"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="372490531"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
<string key="objectName">File's Owner</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="843779117"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">6</int>
|
||||
<reference key="object" ref="774585933"/>
|
||||
<reference key="parent" ref="0"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>6.IBEditorWindowLastContentRect</string>
|
||||
<string>6.IBPluginDependency</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>TweetBotTabBarViewController</string>
|
||||
<string>UIResponder</string>
|
||||
<string>{{239, 654}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="activeLocalization"/>
|
||||
<object class="NSMutableDictionary" key="localizations">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference key="dict.sortedKeys" ref="0"/>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">7</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">TweetBotTabBarViewController</string>
|
||||
<string key="superclassName">UIViewController</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">TweetBotTabBarViewController.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
|
||||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
|
||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
|
||||
<integer value="3100" key="NS.object.0"/>
|
||||
</object>
|
||||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
|
||||
<string key="IBDocument.LastKnownRelativeProjectPath">TweetBotTabBar.xcodeproj</string>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">77</string>
|
||||
<nil key="IBCocoaTouchSimulationTargetRuntimeIdentifier"/>
|
||||
</data>
|
||||
</archive>
|
||||
17
TweetBotTabBar/main.m
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// main.m
|
||||
// TweetBotTabBar
|
||||
//
|
||||
// Created by Jerish Brown on 6/27/11.
|
||||
// Copyright 2011 i3Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
int retVal = UIApplicationMain(argc, argv, nil, nil);
|
||||
[pool release];
|
||||
return retVal;
|
||||
}
|
||||
BIN
favoritesIcon.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
favoritesIcon@2x.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
favoritesIconHighlighted.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
favoritesIconHighlighted@2x.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
mentionsIcon.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
mentionsIcon@2x.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
mentionsIconHighlighted.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
mentionsIconHighlighted@2x.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
messagesIcon.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
messagesIcon@2x.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
messagesIconHighlighted.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
messagesIconHighlighted@2x.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
searchIcon.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
searchIcon@2x.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
searchIconHighlighted.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
searchIconHighlighted@2x.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
tabBarButtonBackground.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
tabBarButtonBackground@2x.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
tabBarNotificationLightOff.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
tabBarNotificationLightOff@2x.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
tabBarNotificationLightOn.png
Normal file
|
After Width: | Height: | Size: 964 B |
BIN
tabBarNotificationLightOn@2x.png
Normal file
|
After Width: | Height: | Size: 1016 B |
BIN
timelineIcon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
timelineIcon@2x.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
timelineIconHighlighted.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
timelineIconHighlighted@2x.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |