Open hsklia opened 6 years ago
@alihasanzaade i have the same problem, and when pick country see empty table cell
@alihasanzaade Hello,you found the problem?Can you help me?
@lestadNew Hey Andrew. Did you fixed this issues? For top margins corrupted I found one solution, it is: _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
@DenisDbv Hey Denis, i put this method all controllers top margins it is ok, but empty Row;
@lestadNew Hey, did you solve your problem? I ran into the same problem, contact people and chat
@lestadNew hey,I studied one morning and the solution was
replace
(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style { self = [super initWithFrame:frame style:style]; if (self != nil) { if (iosMajorVersion() < 7) { self.backgroundView = [[UIView alloc] init]; self.backgroundView.backgroundColor = [UIColor whiteColor]; } else { if (@available(iOS 11.0, *)) { self.backgroundView = [[UIView alloc] init]; self.backgroundView.backgroundColor = [UIColor whiteColor];
}else{
_whiteFooterView = [[UIView alloc] init];
_whiteFooterView.backgroundColor = [UIColor whiteColor];
[self insertSubview:_whiteFooterView atIndex:0];
}
}
} return self; }
@Goto-Code You are just super))))
@Goto-Code And you can not tell yet what is the reason that when you go to other view controller hiding the button back and title ?
@lestadNew The problem is much simpler and needs to be changed
replace
@Goto-Code hello, i trie your code but in all navigationbar is empty
@lestadNew Did you modify or customize tar
@Goto-Code No, only your code
@Goto-Code maybe #import "TGListsTableView.h" when insertview change all code? Your code:(@lestadNew hey,I studied one morning and the solution was
replace)
@lestadNew 其实这完全是因为ios11更新导致的问题!更改了nav的图层结构,你需要去了解这个,才能解决问题
@lestadNew did you fix the empty navigation bar?
To fix this navigation bar problem go to "TGNavigationBar.m". Look for the method "initWithFrame" and comment the if-statement on it. The final code should be something like this:
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
// if (self)
// {
// [self commonInit:[self isKindOfClass:[TGBlackNavigationBar class]] ? UIBarStyleBlackTranslucent : UIBarStyleDefault];
// }
return self;
}
EDITED: I noticed that the code above will work only on iOS11. If you try to run the code in a early version than iOS11, the navigation bar will be transparent. So, I made a small change in the code. It should look like this:
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (@available(iOS 11, *)) {
//iOS 11 or newer: Do nothing
} else if (self) {
[self commonInit:[self isKindOfClass:[TGBlackNavigationBar class]] ? UIBarStyleBlackTranslucent : UIBarStyleDefault];
}
return self;
}
@santosleonardo2 @casevictor hey,How do you do? I failed when I changed my name, and I will sync it up to the previous name. What's going on?
@casevictor try @santosleonardo2 code, this code fix the empty navigation bar. @Goto-Code I did not understand your problem
@lestadNew Hello, do you know how to solve the problem I just asked
Thanks @santosleonardo2! Now it works :)
When compile the source with XCode 9 and IOS 11 , Chat list items will be invisible and application views does not work properly! For example navigation back button will be invisible in all controllers, All controllers top margins corrupted, and some other issues ...