no message

This commit is contained in:
Giuseppe Nucifora 2015-10-29 01:42:58 +01:00
parent 1d48a97fdc
commit b577403e80
3 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@
#import "UIButton+BackgroundColor.h"
#import <UIKit/UIKit.h>
@interface TabBarItem() <TabBarPickerSubItemsViewDelegate>
@interface TabBarItem()
@property (nonatomic, strong) UIButton *itemButton;

View File

@ -256,14 +256,14 @@
break;
}
case 1:{
int max = (int)[_calendar maximumRangeOfUnit:NSCalendarUnitHour].length;
[lblDate setText:[NSString stringWithFormat:@"%02d",(row % max)]]; // 02d = pad with leading zeros to 2 digits
NSInteger max = (int)[_calendar maximumRangeOfUnit:NSCalendarUnitHour].length;
[lblDate setText:[NSString stringWithFormat:@"%02ld",(long)(row % max)]]; // 02d = pad with leading zeros to 2 digits
lblDate.textAlignment = NSTextAlignmentCenter;
break;
}
case 2:{
int max = (int)[_calendar maximumRangeOfUnit:NSCalendarUnitMinute].length;
[lblDate setText:[NSString stringWithFormat:@"%02d",(row % max)]];
NSInteger max = (int)[_calendar maximumRangeOfUnit:NSCalendarUnitMinute].length;
[lblDate setText:[NSString stringWithFormat:@"%02ld",(long)(row % max)]];
lblDate.textAlignment = NSTextAlignmentLeft;
break;
}

View File

@ -148,7 +148,7 @@
// height is the height/width for one segment
// index is the index of the page
// size is the number of segments that present one page
int value = height * index * size;
NSInteger value = height * index * size;
// check if the page where the user wants so scroll to is in the contentSize of the ScrollView
if (!(value + [self frameSize:self] < [self contentScrollSize:self])) {
@ -308,9 +308,9 @@
if (!_enableFitScreen && !((int)contentSize.height % (_pageSize * _segmentSize) == 0)) {
// Calculate how much 'white space' is needed.
int currentContentSize = [self contentSize:contentSize];
int sizeOnePage = (_pageSize * _segmentSize);
int canSomebodyPleaseRenameThisValueIfHeOrSheFindsOutHowToCallIt = ((int)[self contentSize:contentSize] % (_pageSize * _segmentSize));
NSInteger currentContentSize = [self contentSize:contentSize];
NSInteger sizeOnePage = (_pageSize * _segmentSize);
NSInteger canSomebodyPleaseRenameThisValueIfHeOrSheFindsOutHowToCallIt = ((int)[self contentSize:contentSize] % (_pageSize * _segmentSize));
CGFloat value = sizeOnePage - canSomebodyPleaseRenameThisValueIfHeOrSheFindsOutHowToCallIt + currentContentSize;
contentSize = [self setCGSize:contentSize withValue:value];