Skip to content

Commit

Permalink
消除警告
Browse files Browse the repository at this point in the history
  • Loading branch information
hon-key committed May 31, 2018
1 parent 795351d commit 003ea3f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
14 changes: 7 additions & 7 deletions HKAttributedTextView.podspec → NudeIn.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Be sure to run `pod spec lint HKAttributedTextView.podspec' to ensure this is a
# Be sure to run `pod spec lint NudeIn.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
Expand All @@ -15,8 +15,8 @@ Pod::Spec.new do |s|
# summary should be tweet-length, and the description more in depth.
#

s.name = "HKAttributedTextView"
s.version = "1.1"
s.name = "NudeIn"
s.version = "1.2-beta"
s.summary = "A attributed text component like masonry."

# This description is used to generate tags and improve search results.
Expand All @@ -28,7 +28,7 @@ Pod::Spec.new do |s|
# A attributed text component like masonry..
# DESC

s.homepage = "https://github.com/hon-key/HKAttributedTextView"
s.homepage = "https://github.com/hon-key/Nudeln"
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"


Expand Down Expand Up @@ -80,7 +80,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#

s.source = { :git => "https://github.com/hon-key/HKAttributedTextView.git", :tag => s.version }
s.source = { :git => "https://github.com/hon-key/Nudeln.git", :tag => s.version }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand All @@ -91,7 +91,7 @@ Pod::Spec.new do |s|
# Not including the public_header_files will make all headers public.
#

s.source_files = "HKAttributedTextView", "HKAttributedTextView/**/*.{h,m}"
s.source_files = "NudeIn", "NudeIn/**/*.{h,m}"
# s.exclude_files = "Classes/Exclude"

# s.public_header_files = "Classes/**/*.h"
Expand All @@ -117,7 +117,7 @@ Pod::Spec.new do |s|
# the lib prefix of their name.
#

s.framework = "UIKit"
s.framework = "UIKit", "Foundation"
# s.frameworks = "SomeFramework", "AnotherFramework"

# s.library = "iconv"
Expand Down
8 changes: 8 additions & 0 deletions NudeIn/NUDTextMaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ - (instancetype)init {
};
}

- (NUDAttachment *(^)(UIImage *))imageRes {
return ^NUDAttachment *(UIImage *image) {
NUDAttachment *attachment = [[NUDAttachment alloc] initWithFather:self];
attachment.image = image;
return attachment;
};
}

- (NUDAttachmentTemplate *(^)(NSString *))imageTemplate {
return ^NUDAttachmentTemplate *(NSString *string) {
NUDAttachmentTemplate *template = [[NUDAttachmentTemplate alloc] initWithFather:self identifier:string];
Expand Down
5 changes: 5 additions & 0 deletions NudeIn/NUDTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ + (NUDTextView *)make:(void (^)(NUDTextMaker *))make {

}

// TODO: append
- (NUDTextView *)append:(void (^)(NUDTextMaker *))make {
return nil;
}

- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange {

NSArray *urlComp = [URL.absoluteString componentsSeparatedByString:@"://"];
Expand Down
Binary file not shown.

0 comments on commit 003ea3f

Please sign in to comment.