diff options
author | Vitaly Takmazov | 2018-04-08 16:36:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-08 16:36:46 +0300 |
commit | 6f8855ce3b83cc50583b62b4a1960c27fdf66bb3 (patch) | |
tree | 8e9fb3078a5b7cfcbb7ff2c4ab3a6f725306bee9 /Juick | |
parent | a18e9ee9a3dc8b7f8ed3074893eac788bc234903 (diff) |
QuoteView
Diffstat (limited to 'Juick')
-rw-r--r-- | Juick/ViewControllers/NewPostViewController.m | 6 | ||||
-rw-r--r-- | Juick/Views/QuoteView.h (renamed from Juick/Views/MessageInputView.h) | 2 | ||||
-rw-r--r-- | Juick/Views/QuoteView.m (renamed from Juick/Views/MessageInputView.m) | 4 | ||||
-rw-r--r-- | Juick/Views/QuoteView.xib (renamed from Juick/Views/MessageInputView.xib) | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/Juick/ViewControllers/NewPostViewController.m b/Juick/ViewControllers/NewPostViewController.m index 81121ec..3e2d17e 100644 --- a/Juick/ViewControllers/NewPostViewController.m +++ b/Juick/ViewControllers/NewPostViewController.m @@ -9,7 +9,7 @@ #import "NewPostViewController.h" #import "MessagesViewController.h" #import "ColorScheme.h" -#import "MessageInputView.h" +#import "QuoteView.h" #import "APIClient.h" @interface NewPostViewController () @@ -29,7 +29,7 @@ self.paddingValue = self.bottomConstraint.constant; [self.view setBackgroundColor:[ColorScheme mainBackground]]; if (_replyTo != nil) { - MessageInputView *inputView = (MessageInputView *) self.inputAccessoryView; + QuoteView *inputView = (QuoteView *) self.inputAccessoryView; inputView.quoteText.text = _replyTo.text; self.title = [NSString stringWithFormat:@"Reply to %@", _replyTo.user.uname]; } else { @@ -73,7 +73,7 @@ - (UIView *) inputAccessoryView { if (!_inputAccessoryView) { - MessageInputView *inputView = (MessageInputView *)[[[NSBundle mainBundle] loadNibNamed:@"MessageInputView" owner:self options:nil] firstObject]; + QuoteView *inputView = (QuoteView *)[[[NSBundle mainBundle] loadNibNamed:@"QuoteView" owner:self options:nil] firstObject]; inputView.autoresizingMask = UIViewAutoresizingFlexibleHeight; inputView.quoteText.text = self.replyTo.text; _inputAccessoryView = inputView; diff --git a/Juick/Views/MessageInputView.h b/Juick/Views/QuoteView.h index cfdcea6..affc7ee 100644 --- a/Juick/Views/MessageInputView.h +++ b/Juick/Views/QuoteView.h @@ -8,6 +8,6 @@ #import <UIKit/UIKit.h> -@interface MessageInputView : UIVisualEffectView +@interface QuoteView : UIVisualEffectView @property (weak, nonatomic) IBOutlet UILabel *quoteText; @end diff --git a/Juick/Views/MessageInputView.m b/Juick/Views/QuoteView.m index 24c8b41..bb9cd75 100644 --- a/Juick/Views/MessageInputView.m +++ b/Juick/Views/QuoteView.m @@ -6,9 +6,9 @@ // Copyright © 2017 com.juick. All rights reserved. // -#import "MessageInputView.h" +#import "QuoteView.h" #import "ColorScheme.h" -@implementation MessageInputView +@implementation QuoteView -(void) awakeFromNib { [super awakeFromNib]; diff --git a/Juick/Views/MessageInputView.xib b/Juick/Views/QuoteView.xib index 0b2af25..96a03fe 100644 --- a/Juick/Views/MessageInputView.xib +++ b/Juick/Views/QuoteView.xib @@ -1,18 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <device id="retina4_7" orientation="portrait"> <adaptation id="fullscreen"/> </device> <dependencies> <deployment identifier="iOS"/> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <objects> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> - <visualEffectView opaque="NO" contentMode="scaleToFill" id="8gV-Bq-kOk" customClass="MessageInputView"> + <visualEffectView opaque="NO" contentMode="scaleToFill" id="8gV-Bq-kOk" customClass="QuoteView"> <rect key="frame" x="0.0" y="0.0" width="368" height="31"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="imu-GT-9JL"> |