Skip to content

Commit

Permalink
Deprecated methods updated
Browse files Browse the repository at this point in the history
Deprecated sizeWithFont: methods updated for iOS SDK 7.0 and above
  • Loading branch information
neocorp committed Apr 1, 2014
1 parent 1ae37b4 commit 2d0259b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PopoverView/PopoverView.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ - (CGSize) screenSize
- (void)showAtPoint:(CGPoint)point inView:(UIView *)view withText:(NSString *)text
{
UIFont *font = kTextFont;
UIColor *patternColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"navBarPattern.png"]];
CGSize screenSize = [self screenSize];
CGRect textRect = [text boundingRectWithSize:CGSizeMake(screenSize.width - kHorizontalMargin*4.f, 1000.f)
options:NSStringDrawingUsesLineFragmentOrigin
Expand All @@ -174,7 +173,7 @@ - (void)showAtPoint:(CGPoint)point inView:(UIView *)view withText:(NSString *)te
[textView setNumberOfLines:0]; //This is so the label word wraps instead of cutting off the text
textView.font = font;
textView.textAlignment = kTextAlignment;
textView.textColor = patternColor;
textView.textColor = kTextColor;
textView.text = text;

[self showAtPoint:point inView:view withViewArray:[NSArray arrayWithObject:[textView AUTORELEASE]]];
Expand Down

0 comments on commit 2d0259b

Please sign in to comment.