Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #635 from facebook/development
Browse files Browse the repository at this point in the history
Release Three20 v1.0.8
  • Loading branch information
jwang committed Aug 2, 2011
2 parents 41bdb73 + 304692c commit 0e27b65
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Three20Core/Sources/Three20Version.m
Expand Up @@ -18,6 +18,6 @@

/*! \mainpage Three20 API Documentation
*
* Generated from Three20 Release <a href="http://three20.info/roadmap/1.0.7">1.0.7</a>.
* Generated from Three20 Release <a href="http://three20.info/roadmap/1.0.8">1.0.8</a>.
*/
NSString* const Three20Version = @"1.0.7";
NSString* const Three20Version = @"1.0.8";
3 changes: 2 additions & 1 deletion src/Three20Network/Headers/TTRequestLoader.h
Expand Up @@ -36,7 +36,8 @@
* TTURLRequestQueue's sendRequest.
* For all other TTURLRequest types, they will each have their own loader.
*/
@interface TTRequestLoader : NSObject {
@interface TTRequestLoader : NSObject
{
NSString* _urlPath;

TTURLRequestQueue* _queue;
Expand Down
4 changes: 0 additions & 4 deletions src/Three20Network/Three20Network.xcodeproj/project.pbxproj
Expand Up @@ -884,7 +884,6 @@
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
RUN_CLANG_STATIC_ANALYZER = YES;
Expand All @@ -902,7 +901,6 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -971,7 +969,6 @@
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
PREBINDING = NO;
SDKROOT = iphoneos;
Expand All @@ -987,7 +984,6 @@
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "$(SRCROOT)/../common/Xcode324iOS41Fix.pch";
PREBINDING = NO;
SDKROOT = iphoneos;
ZERO_LINK = NO;
Expand Down
2 changes: 1 addition & 1 deletion src/Three20Style/Sources/TTStyledTextParser.m
Expand Up @@ -209,8 +209,8 @@ - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
} else if ([tag isEqualToString:@"a"]) {
TTStyledLinkNode* node = [[[TTStyledLinkNode alloc] init] autorelease];
node.URL = [attributeDict objectForKey:@"href"];
node.className = [attributeDict objectForKey:@"class"];
[self pushNode:node];

} else if ([tag isEqualToString:@"button"]) {
TTStyledButtonNode* node = [[[TTStyledButtonNode alloc] init] autorelease];
node.URL = [attributeDict objectForKey:@"href"];
Expand Down
12 changes: 11 additions & 1 deletion src/Three20Style/Sources/TTTextStyle.m
Expand Up @@ -22,6 +22,7 @@
#import "Three20Style/UIFontAdditions.h"

// Core
#import "Three20Core/NSStringAdditions.h"
#import "Three20Core/TTCorePreprocessorMacros.h"


Expand Down Expand Up @@ -230,7 +231,16 @@ - (void)drawText:(NSString*)text context:(TTStyleContext*)context {
}

if (_shadowColor) {
CGSize offset = CGSizeMake(_shadowOffset.width, -_shadowOffset.height);
// Due to a bug in OS versions 3.2 and 4.0, the shadow appears upside-down. It pains me to
// write this, but a lot of research has failed to turn up a way to detect the flipped shadow
// programmatically
float shadowYOffset = -_shadowOffset.height;
NSString *osVersion = [UIDevice currentDevice].systemVersion;
if ([osVersion versionStringCompare:@"3.2"] != NSOrderedAscending) {
shadowYOffset = _shadowOffset.height;
}

CGSize offset = CGSizeMake(_shadowOffset.width, shadowYOffset);
CGContextSetShadowWithColor(ctx, offset, 0, _shadowColor.CGColor);
}

Expand Down
11 changes: 10 additions & 1 deletion src/Three20UI/Sources/TTLauncherView.m
Expand Up @@ -746,7 +746,13 @@ - (void)scrollViewWillBeginDragging:(UIScrollView*)scrollView {

///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
[self updatePagerWithContentOffset:_scrollView.contentOffset];
[self updatePagerWithContentOffset:scrollView.contentOffset];
}


///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView {
[self updatePagerWithContentOffset:scrollView.contentOffset];
}


Expand Down Expand Up @@ -928,6 +934,9 @@ - (void)scrollToItem:(TTLauncherItem*)item animated:(BOOL)animated {
NSUInteger page = [path indexAtPosition:0];
CGFloat x = page * _scrollView.width;
[_scrollView setContentOffset:CGPointMake(x, 0) animated:animated];
if (!animated) {
[self updatePagerWithContentOffset:CGPointMake(x, 0)];
}
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Three20UI/Sources/TTTableViewDragRefreshDelegate.m
Expand Up @@ -100,6 +100,7 @@ - (id)initWithController:(TTTableViewController*)controller {
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)dealloc {
[_model.delegates removeObject:self];
[_headerView removeFromSuperview];
TT_RELEASE_SAFELY(_headerView);
TT_RELEASE_SAFELY(_model);

Expand Down
7 changes: 6 additions & 1 deletion src/Three20UI/Sources/UITabBarControllerAdditions.m
Expand Up @@ -71,7 +71,12 @@ - (BOOL)canContainControllers {

///////////////////////////////////////////////////////////////////////////////////////////////////
- (UIViewController*)topSubcontroller {
return self.selectedViewController;
if (self.tabBar.selectedItem == self.moreNavigationController.tabBarItem) {
return self.moreNavigationController;
}
else {
return self.selectedViewController;
}
}


Expand Down

0 comments on commit 0e27b65

Please sign in to comment.