Skip to content

Commit

Permalink
add self.selfViewModel.attributedText
Browse files Browse the repository at this point in the history
  • Loading branch information
foxsofter committed Nov 7, 2016
1 parent 6c0ae55 commit a2b0945
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Classes/Mvvm/ViewModels/LPDTableCellViewModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
@property (nonatomic) UITableViewCellAccessoryType accessoryType;

@property (nonatomic) UITableViewCellSelectionStyle selectionStyle;

@property (nonatomic, strong) NSMutableAttributedString *attributedText;

@end

@interface LPDTableDefaultCellViewModel : LPDTableCellViewModel
Expand Down
3 changes: 3 additions & 0 deletions Classes/Mvvm/Views/LPDTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ - (void)bindingTo:(__kindof id<LPDTableCellViewModelProtocol>)viewModel {
self.imageView.image = self.selfViewModel.image;
self.accessoryType = self.selfViewModel.accessoryType;
self.selectionStyle = self.selfViewModel.selectionStyle;
if (self.selfViewModel.attributedText) {
self.textLabel.attributedText = self.selfViewModel.attributedText;
}
}

- (LPDTableCellViewModel *)selfViewModel {
Expand Down
2 changes: 1 addition & 1 deletion LPDMvvmKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "LPDMvvmKit"
s.version = "0.5.1"
s.version = "0.5.2"
s.summary = "mvvm"

s.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions LPDMvvmKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.5.0</string>
<string>0.5.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>72</string>
<string>73</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down

0 comments on commit a2b0945

Please sign in to comment.