element-ios/Vector/Views/RoomTitle/RoomTitleView.m
giomfo 37406b16eb Bug Fix: move further the chevron in room title view #48
- Remove room topic
- Handle correctly tap on room title view
2016-01-13 19:03:27 +01:00

48 lines
1.1 KiB
Objective-C

/*
Copyright 2015 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import "RoomTitleView.h"
#import "VectorDesignValues.h"
#import "MXRoom+Vector.h"
@implementation RoomTitleView
+ (UINib *)nib
{
return [UINib nibWithNibName:NSStringFromClass([RoomTitleView class])
bundle:[NSBundle bundleForClass:[RoomTitleView class]]];
}
- (void)awakeFromNib
{
[super awakeFromNib];
self.displayNameTextField.textColor = VECTOR_TEXT_BLACK_COLOR;
}
- (void)refreshDisplay
{
[super refreshDisplay];
if (self.mxRoom)
{
self.displayNameTextField.text = self.mxRoom.vectorDisplayname;
}
}
@end