mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Fixed warnings.
This commit is contained in:
parent
bc7d538ed6
commit
f3f6f2172f
@ -164,7 +164,7 @@
|
||||
NSString *requiredIdentifier = nil;
|
||||
UITableViewCellStyle cellStyle = UITableViewCellStyleSubtitle;
|
||||
|
||||
if (indexPath.section == (NSUInteger)[self numberOfSections] - 1) {
|
||||
if ((NSInteger)indexPath.section == [self numberOfSections] - 1) {
|
||||
cellStyle = UITableViewCellStyleDefault;
|
||||
requiredIdentifier = CheckmarkCellIdentifier;
|
||||
} else {
|
||||
@ -181,7 +181,7 @@
|
||||
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
|
||||
// Configure the cell...
|
||||
if (indexPath.section == (NSUInteger)[self numberOfSections] - 1) {
|
||||
if ((NSInteger)indexPath.section == [self numberOfSections] - 1) {
|
||||
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
|
||||
|
||||
// update check selection
|
||||
|
@ -498,7 +498,7 @@
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
CGFloat rowHeight = 0;
|
||||
|
||||
if ([cells_ count] > indexPath.row) {
|
||||
if ([cells_ count] > (NSUInteger)indexPath.row) {
|
||||
PSWebTableViewCell *cell = [cells_ objectAtIndex:indexPath.row];
|
||||
rowHeight = cell.webViewSize.height;
|
||||
}
|
||||
@ -548,7 +548,7 @@
|
||||
|
||||
// Customize the appearance of table view cells.
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
if ([cells_ count] > indexPath.row) {
|
||||
if ([cells_ count] > (NSUInteger)indexPath.row) {
|
||||
return [cells_ objectAtIndex:indexPath.row];
|
||||
} else {
|
||||
BWHockeyLog(@"Warning: cells_ and indexPath do not match? forgot calling redrawTableView?");
|
||||
|
Loading…
x
Reference in New Issue
Block a user