Skip to content

Commit

Permalink
Bug fixs.
Browse files Browse the repository at this point in the history
  • Loading branch information
devedbox committed Jun 13, 2016
1 parent c3d0e14 commit 0ae8c2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions AXAttributedLabel.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |s|

s.name = "AXAttributedLabel"
s.version = "0.2.4"
s.version = "0.2.5"
s.summary = "`AXAttributedLabel` is an iOS customizable attributed label that displays attributed text."

s.description = <<-DESC
Expand All @@ -21,7 +21,7 @@ s.platform = :ios, "7.0"
# s.ios.deployment_target = “7.0”
# s.osx.deployment_target = "10.7"
# s.watchos.deployment_target = "2.0"
s.source = { :git => "https://github.com/devedbox/AXAttributedLabel.git", :tag => "0.2.4" }
s.source = { :git => "https://github.com/devedbox/AXAttributedLabel.git", :tag => "0.2.5" }
s.source_files = "AXAttributedLabel/AXAttributedLabel/*.{h,m}"
#s.exclude_files = "Classes/Exclude"
# s.public_header_files = "Classes/**/*.h"
Expand Down
24 changes: 12 additions & 12 deletions AXAttributedLabel/AXAttributedLabel/AXAttributedLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -655,25 +655,25 @@ - (void)setExclusionViews:(NSArray<UIView *> *)exclusionViews {
}
for (UIView *view in _exclusionViews) {
CGRect frame = view.frame;
frame.origin.x += self.textContainerInset.left-5;
frame.origin.x += self.textContainerInset.left;
frame.origin.y += self.textContainerInset.top;
UIBezierPath *bezier = [UIBezierPath bezierPathWithRoundedRect:view.frame cornerRadius:view.layer.cornerRadius];
[exclusionPaths addObject:bezier];
view.frame = frame;
[_textContainerView addSubview:view];
view.userInteractionEnabled = YES;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0
if ([[[UIDevice currentDevice] systemVersion] intValue]>=9) {
UIViewController *viewController = nil;
id nextResponsder = self.nextResponder;
while (![nextResponsder isKindOfClass:[UIViewController class]]) {
nextResponsder = [nextResponsder nextResponder];
}
viewController = nextResponsder;
if (viewController) {
[viewController registerForPreviewingWithDelegate:self sourceView:view];
}
}
// if ([[[UIDevice currentDevice] systemVersion] intValue]>=9) {
// UIViewController *viewController = nil;
// id nextResponsder = self.nextResponder;
// while (![nextResponsder isKindOfClass:[UIViewController class]]) {
// nextResponsder = [nextResponsder nextResponder];
// }
// viewController = nextResponsder;
// if (viewController) {
// [viewController registerForPreviewingWithDelegate:self sourceView:view];
// }
// }
#endif
}
[self setExclusionPaths:exclusionPaths];
Expand Down

0 comments on commit 0ae8c2c

Please sign in to comment.