SP3.1: Update room settings for Spaces element-ios#5231

- Changed the Room Settings screen according to the new design
- Implemented the room access flow
- Added room upgrade support
- Implemented the room suggestion screen
This commit is contained in:
Gil Eluard
2022-01-13 15:53:45 +01:00
parent b7642b8022
commit ea9183d70e
78 changed files with 3755 additions and 196 deletions

View File

@@ -24,10 +24,10 @@
// Check whether a nib file is available
NSBundle *mainBundle = [NSBundle mxk_bundleForClass:self.class];
NSString *path = [mainBundle pathForResource:NSStringFromClass([self class]) ofType:@"nib"];
NSString *path = [mainBundle pathForResource:[self className] ofType:@"nib"];
if (path)
{
return [UINib nibWithNibName:NSStringFromClass([self class]) bundle:mainBundle];
return [UINib nibWithNibName:[self className] bundle:mainBundle];
}
return nil;
}
@@ -37,6 +37,11 @@
return NSStringFromClass([self class]);
}
+ (NSString*)className
{
return [NSStringFromClass([self class]) componentsSeparatedByString:@"."].lastObject;
}
- (void)awakeFromNib
{
[super awakeFromNib];