標籤:
好久沒更新部落格了,現在慢慢總結一下工作和學習iOS中的知識:
// 引導動畫判斷
- (void)GuideJudge
{
if (TimeString)//程式開啟
{
//舊版本號碼
NSArray *Array = [TimeString componentsSeparatedByString:@"."];
NSString *OldString = @"";
for (NSString *String in AArray)
{
OldString = [NSString stringWithFormat:@"%@%@",OldString,String];
}
NSInteger OldInt = [OldString integerValue];
//新版本號碼
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
NSString *EditionString = [infoDictionary objectForKey:@"VersionString"];
NSArray *ArrayS = [EditionString componentsSeparatedByString:@"."];
NSString *NewString = @"";
for (NSString *AString in ArrayS)
{
NewString = [NSString stringWithFormat:@"%@%@",NewString,String];
}
NSInteger NewInt = [NewString integerValue];
if (NewInt > OldInt)
{//播放引導圖
GuideChartView *guideChartView = [[GuideChartView alloc] init];
[ViewJump pushViewController:guideChartView animated:NO];
}
else if (PhoneString)
{
[AccountAdministration LoginSuccess];
}
else
{
[AccountAdministration CancellationSuccess];
}
}
else
{//播放引導圖
GuideChartView *guideChartView = [[GuideChartView alloc] init];
[ViewJump pushViewController:guideChartView animated:NO];
}
}
iOS學習之-開機引導圖