mirror of
https://github.com/wu736139669/Ash_AWord.git
synced 2026-08-05 05:55:19 +00:00
修改最新版本显示
This commit is contained in:
+278
-6
@@ -506,7 +506,7 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
timestampString = "457196521.385258"
|
timestampString = "457428062.147497"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "1017"
|
startingLineNumber = "1017"
|
||||||
@@ -522,7 +522,7 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
timestampString = "457196521.385258"
|
timestampString = "457428062.147497"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "987"
|
startingLineNumber = "987"
|
||||||
@@ -554,11 +554,11 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Ash_AWord/ViewControllers/My/SetUpViewController.m"
|
filePath = "Ash_AWord/ViewControllers/My/SetUpViewController.m"
|
||||||
timestampString = "457198162.554138"
|
timestampString = "458009917.116854"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "121"
|
startingLineNumber = "146"
|
||||||
endingLineNumber = "121"
|
endingLineNumber = "146"
|
||||||
landmarkName = "-tableView:cellForRowAtIndexPath:"
|
landmarkName = "-tableView:cellForRowAtIndexPath:"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
@@ -582,7 +582,7 @@
|
|||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
<BreakpointContent
|
<BreakpointContent
|
||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "No"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Ash_AWord/ViewControllers/Main/MainViewController.m"
|
filePath = "Ash_AWord/ViewControllers/Main/MainViewController.m"
|
||||||
@@ -675,5 +675,277 @@
|
|||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457427393.449252"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "178"
|
||||||
|
endingLineNumber = "178"
|
||||||
|
landmarkName = "-didChangeFrameToHeight:"
|
||||||
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "-[ChatMainViewController didChangeFrameToHeight:]"
|
||||||
|
moduleName = "Ash_AWord"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457428320.566967"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "178"
|
||||||
|
endingLineNumber = "178"
|
||||||
|
offsetFromSymbolStart = "46">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "__49-[ChatMainViewController didChangeFrameToHeight:]_block_invoke"
|
||||||
|
moduleName = "Ash_AWord"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457428320.567186"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "178"
|
||||||
|
endingLineNumber = "178"
|
||||||
|
offsetFromSymbolStart = "15">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457428062.147497"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "188"
|
||||||
|
endingLineNumber = "188"
|
||||||
|
landmarkName = "-scrollViewToBottom:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Chat/DXMessageToolBar.m"
|
||||||
|
timestampString = "457427693.681743"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "374"
|
||||||
|
endingLineNumber = "374"
|
||||||
|
landmarkName = "-willShowBottomHeight:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457427980.573756"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "177"
|
||||||
|
endingLineNumber = "177"
|
||||||
|
landmarkName = "-didChangeFrameToHeight:"
|
||||||
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "-[ChatMainViewController didChangeFrameToHeight:]"
|
||||||
|
moduleName = "Ash_AWord"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457427980.576771"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "178"
|
||||||
|
endingLineNumber = "178"
|
||||||
|
offsetFromSymbolStart = "46">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "__49-[ChatMainViewController didChangeFrameToHeight:]_block_invoke"
|
||||||
|
moduleName = "Ash_AWord"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/xmfish/Documents/Ash_Soft/Ash_AWord/Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457427980.577154"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "178"
|
||||||
|
endingLineNumber = "178"
|
||||||
|
offsetFromSymbolStart = "15">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457428325.604514"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "182"
|
||||||
|
endingLineNumber = "182"
|
||||||
|
landmarkName = "-didChangeFrameToHeight:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457428326.865474"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "184"
|
||||||
|
endingLineNumber = "184"
|
||||||
|
landmarkName = "-didChangeFrameToHeight:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Chat/ChatMainViewController.m"
|
||||||
|
timestampString = "457428378.424195"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "191"
|
||||||
|
endingLineNumber = "191"
|
||||||
|
landmarkName = "-scrollViewToBottom:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Login/LoginViewController.m"
|
||||||
|
timestampString = "457510014.879613"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "67"
|
||||||
|
endingLineNumber = "67"
|
||||||
|
landmarkName = "-qqLoginBtnClick:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/Login/LoginViewController.m"
|
||||||
|
timestampString = "457510065.917892"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "159"
|
||||||
|
endingLineNumber = "159"
|
||||||
|
landmarkName = "-loginWithOpenId:withName:withGender:withFigureUrl:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewModels/LoginViewModel.m"
|
||||||
|
timestampString = "457510127.948036"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "46"
|
||||||
|
endingLineNumber = "46"
|
||||||
|
landmarkName = "+requireLoginWithOpenId:withName:withGender:withFigureUrl:"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/My/SetUpViewController.m"
|
||||||
|
timestampString = "458009936.785919"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "41"
|
||||||
|
endingLineNumber = "41"
|
||||||
|
landmarkName = "-checkUpdate"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/My/SetUpViewController.m"
|
||||||
|
timestampString = "458009943.499171"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "47"
|
||||||
|
endingLineNumber = "47"
|
||||||
|
landmarkName = "-checkUpdate"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Ash_AWord/ViewControllers/My/SetUpViewController.m"
|
||||||
|
timestampString = "458009944.27509"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "46"
|
||||||
|
endingLineNumber = "46"
|
||||||
|
landmarkName = "-checkUpdate"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
</Breakpoints>
|
</Breakpoints>
|
||||||
</Bucket>
|
</Bucket>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
@property (strong, nonatomic) UIWindow *window;
|
@property (strong, nonatomic) UIWindow *window;
|
||||||
@property (strong, nonatomic) MainViewController* mainViewController;
|
@property (strong, nonatomic) MainViewController* mainViewController;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当前可视viewController
|
* 当前可视viewController
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.0</string>
|
<string>2.0.0</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>8</string>
|
<string>10</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSLocationWhenInUseUsageDescription</key>
|
<key>NSLocationWhenInUseUsageDescription</key>
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
{
|
{
|
||||||
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
||||||
NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
|
NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
|
||||||
NSString *buildVersion = [infoDictionary objectForKey:@"CFBundleVersion"];
|
// NSString *buildVersion = [infoDictionary objectForKey:@"CFBundleVersion"];
|
||||||
NSString *version = [NSString stringWithFormat:@"%@.%@",app_Version, buildVersion];
|
NSString *version = [NSString stringWithFormat:@"%@",app_Version];
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
+ (NetworkType)networkType
|
+ (NetworkType)networkType
|
||||||
|
|||||||
@@ -15,8 +15,11 @@
|
|||||||
#import "LoginViewModel.h"
|
#import "LoginViewModel.h"
|
||||||
#import "MessageSetViewController.h"
|
#import "MessageSetViewController.h"
|
||||||
#import "BlackListViewController.h"
|
#import "BlackListViewController.h"
|
||||||
|
#import "UpdateViewModel.h"
|
||||||
@interface SetUpViewController ()<UIAlertViewDelegate>
|
@interface SetUpViewController ()<UIAlertViewDelegate>
|
||||||
|
{
|
||||||
|
BOOL _isNewVersion;
|
||||||
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation SetUpViewController
|
@implementation SetUpViewController
|
||||||
@@ -28,8 +31,29 @@
|
|||||||
self.navigationItem.title = @"设置";
|
self.navigationItem.title = @"设置";
|
||||||
_tableView.dataSource = self;
|
_tableView.dataSource = self;
|
||||||
_tableView.delegate = self;
|
_tableView.delegate = self;
|
||||||
|
_isNewVersion = NO;
|
||||||
|
|
||||||
|
[self checkUpdate];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-(void)checkUpdate
|
||||||
|
{
|
||||||
|
PropertyEntity* pro = [UpdateViewModel requireUpdate];
|
||||||
|
[RequireEngine requireWithProperty:pro completionBlock:^(id viewModel) {
|
||||||
|
DLog(@"%@",viewModel);
|
||||||
|
UpdateViewModel* updateViewModel = (UpdateViewModel*)viewModel;
|
||||||
|
if ([updateViewModel success]) {
|
||||||
|
if (updateViewModel.needUpdate==1) {
|
||||||
|
_isNewVersion = YES;
|
||||||
|
}else{
|
||||||
|
_isNewVersion = NO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} failedBlock:^(NSError *error) {
|
||||||
|
|
||||||
|
}];
|
||||||
|
|
||||||
|
}
|
||||||
#pragma mark UITableViewDelegate
|
#pragma mark UITableViewDelegate
|
||||||
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||||
{
|
{
|
||||||
@@ -117,12 +141,17 @@
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||||
cell.textLabel.text = @"当前版本";
|
cell.textLabel.text = @"当前版本";
|
||||||
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
||||||
NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
|
NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
|
||||||
NSString *buildVersion = [infoDictionary objectForKey:@"CFBundleVersion"];
|
NSString *buildVersion = [infoDictionary objectForKey:@"CFBundleVersion"];
|
||||||
NSString *version = [NSString stringWithFormat:@"v%@.%@",app_Version, buildVersion];
|
NSString *version = [NSString stringWithFormat:@"v%@(%@)",app_Version, buildVersion];
|
||||||
cell.detailTextLabel.text = version;
|
cell.detailTextLabel.text = version;
|
||||||
|
|
||||||
|
if (!_isNewVersion) {
|
||||||
|
cell.detailTextLabel.text = [NSString stringWithFormat:@"当前已经是最新版%@",version];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
|||||||
Reference in New Issue
Block a user