Permalink
Browse files

1) fix memory issue in DTAttributedTextContentView.m when using block…

…; 2)set target to 5.0.
  • Loading branch information...
1 parent 184ef08 commit 53d70eb1115ec931ea922dc055d2968380081cae @tonycn committed Apr 9, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 Core/Source/DTAttributedTextContentView.m
  2. +2 −2 DTCoreText.xcodeproj/project.pbxproj
@@ -660,7 +660,7 @@ - (DTCoreTextLayoutFrame *)layoutFrame
if (_delegateFlags.delegateSupportsNotificationBeforeTextBoxDrawing)
{
- DTAttributedTextContentView *weakself = self;
+ __weak DTAttributedTextContentView *weakself = self;
[_layoutFrame setTextBlockHandler:^(DTTextBlock *textBlock, CGRect frame, CGContextRef context, BOOL *shouldDrawDefaultBackground) {
BOOL result = [weakself->_delegate attributedTextContentView:weakself shouldDrawBackgroundForTextBlock:textBlock frame:frame context:context forLayoutFrame:weakself->_layoutFrame];
@@ -1769,7 +1769,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/include/libxml2;
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
SDKROOT = iphoneos;
};
name = Debug;
@@ -1789,7 +1789,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/include/libxml2;
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
};

0 comments on commit 53d70eb

Please sign in to comment.