diff --git a/syMessaging/matrixConsole.xcodeproj/project.pbxproj b/syMessaging/matrixConsole.xcodeproj/project.pbxproj index 856f75117..5ce5285dc 100644 --- a/syMessaging/matrixConsole.xcodeproj/project.pbxproj +++ b/syMessaging/matrixConsole.xcodeproj/project.pbxproj @@ -37,6 +37,7 @@ F0CEA5B119E6898800E47915 /* tab_home.ico in Resources */ = {isa = PBXBuildFile; fileRef = F0CEA5B019E6898800E47915 /* tab_home.ico */; }; F0D3C30C1A011EF10000D49E /* AppSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D3C30B1A011EF10000D49E /* AppSettings.m */; }; F0D3C30F1A01330F0000D49E /* SettingsTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D3C30E1A01330F0000D49E /* SettingsTableViewCell.m */; }; + F0E84D401A1F9AEC005F2E42 /* RecentsTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = F0E84D3F1A1F9AEC005F2E42 /* RecentsTableViewCell.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -101,6 +102,8 @@ F0D3C30B1A011EF10000D49E /* AppSettings.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppSettings.m; sourceTree = ""; }; F0D3C30D1A01330F0000D49E /* SettingsTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SettingsTableViewCell.h; sourceTree = ""; }; F0D3C30E1A01330F0000D49E /* SettingsTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SettingsTableViewCell.m; sourceTree = ""; }; + F0E84D3E1A1F9AEC005F2E42 /* RecentsTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RecentsTableViewCell.h; sourceTree = ""; }; + F0E84D3F1A1F9AEC005F2E42 /* RecentsTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RecentsTableViewCell.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -180,6 +183,8 @@ children = ( F00B5DB71A1B9BCE00EA1C8D /* CustomImageView.h */, F00B5DB81A1B9BCE00EA1C8D /* CustomImageView.m */, + F0E84D3E1A1F9AEC005F2E42 /* RecentsTableViewCell.h */, + F0E84D3F1A1F9AEC005F2E42 /* RecentsTableViewCell.m */, F02D707419F1DC9E007B47D3 /* RoomMemberTableCell.h */, F02D707519F1DC9E007B47D3 /* RoomMemberTableCell.m */, F03EF5FD19F1762000A0EE52 /* RoomMessageTableCell.h */, @@ -414,6 +419,7 @@ F03EF60219F19E7C00A0EE52 /* MediaManager.m in Sources */, F03EF5F919F171EB00A0EE52 /* RecentsViewController.m in Sources */, F03C47111A02952800E445AB /* CustomAlert.m in Sources */, + F0E84D401A1F9AEC005F2E42 /* RecentsTableViewCell.m in Sources */, F02D707619F1DC9E007B47D3 /* RoomMemberTableCell.m in Sources */, F00B5DB91A1B9BCE00EA1C8D /* CustomImageView.m in Sources */, F0D3C30C1A011EF10000D49E /* AppSettings.m in Sources */, diff --git a/syMessaging/syMessaging/View/RecentsTableViewCell.h b/syMessaging/syMessaging/View/RecentsTableViewCell.h new file mode 100644 index 000000000..27918556f --- /dev/null +++ b/syMessaging/syMessaging/View/RecentsTableViewCell.h @@ -0,0 +1,25 @@ +/* + Copyright 2014 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 + +@interface RecentsTableViewCell : UITableViewCell + +@property (weak, nonatomic) IBOutlet UILabel *roomTitle; +@property (weak, nonatomic) IBOutlet UILabel *lastEventDescription; +@property (weak, nonatomic) IBOutlet UILabel *recentDate; + +@end \ No newline at end of file diff --git a/syMessaging/syMessaging/View/RecentsTableViewCell.m b/syMessaging/syMessaging/View/RecentsTableViewCell.m new file mode 100644 index 000000000..e8d06d207 --- /dev/null +++ b/syMessaging/syMessaging/View/RecentsTableViewCell.m @@ -0,0 +1,20 @@ +/* + Copyright 2014 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 "RecentsTableViewCell.h" + +@implementation RecentsTableViewCell +@end \ No newline at end of file diff --git a/syMessaging/syMessaging/ViewController/RecentsViewController.m b/syMessaging/syMessaging/ViewController/RecentsViewController.m index 6792cafb8..8e4b4e665 100644 --- a/syMessaging/syMessaging/ViewController/RecentsViewController.m +++ b/syMessaging/syMessaging/ViewController/RecentsViewController.m @@ -17,20 +17,11 @@ #import "RecentsViewController.h" #import "RoomViewController.h" +#import "RecentsTableViewCell.h" + #import "AppDelegate.h" #import "MatrixHandler.h" -@interface RecentsTableViewCell : UITableViewCell - -@property (weak, nonatomic) IBOutlet UILabel *roomTitle; -@property (weak, nonatomic) IBOutlet UILabel *lastEventDescription; -@property (weak, nonatomic) IBOutlet UILabel *recentDate; - -@end - -@implementation RecentsTableViewCell -@end - @interface RecentsViewController () { NSMutableArray *recents; id recentsListener;