好久没更新博客了,现在慢慢总结一下工作和学习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];
}
}