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