Files
GitHawk/SlackTextViewController/Examples/Messenger-Shared/MessageTextView.m
2017-07-23 06:54:55 -04:00

35 lines
783 B
Objective-C
Executable File

//
// MessageTextView.m
// Messenger
//
// Created by Ignacio Romero Z. on 1/20/15.
// Copyright (c) 2015 Slack Technologies, Inc. All rights reserved.
//
#import "MessageTextView.h"
@implementation MessageTextView
- (instancetype)init
{
if (self = [super init]) {
// Do something
}
return self;
}
- (void)willMoveToSuperview:(UIView *)newSuperview
{
[super willMoveToSuperview:newSuperview];
self.backgroundColor = [UIColor whiteColor];
self.placeholder = NSLocalizedString(@"Message", nil);
self.placeholderColor = [UIColor lightGrayColor];
self.pastableMediaTypes = SLKPastableMediaTypeAll;
self.layer.borderColor = [UIColor colorWithRed:217.0/255.0 green:217.0/255.0 blue:217.0/255.0 alpha:1.0].CGColor;
}
@end