summaryrefslogtreecommitdiff
path: root/objective-c
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2017-06-07 16:39:31 -0400
committerJoe George <joe@zeroc.com>2017-06-07 16:39:31 -0400
commit2fb970cdea450b15b5f7d74099246b6abef16857 (patch)
treeac0fdf40cff12d1cba313e20da757671cbdeeebd /objective-c
parentRemove trailing whitespace (diff)
downloadice-2fb970cdea450b15b5f7d74099246b6abef16857.tar.bz2
ice-2fb970cdea450b15b5f7d74099246b6abef16857.tar.xz
ice-2fb970cdea450b15b5f7d74099246b6abef16857.zip
Remove excessive empty lines
Diffstat (limited to 'objective-c')
-rw-r--r--objective-c/src/Ice/BatchRequestInterceptor.mm1
-rw-r--r--objective-c/src/Ice/ObjectAdapterI.mm1
-rw-r--r--objective-c/src/Ice/Stream.mm2
-rw-r--r--objective-c/src/Ice/Util.h1
-rw-r--r--objective-c/src/Ice/VersionI.mm1
-rw-r--r--objective-c/test/Ice/admin/AllTests.m2
-rw-r--r--objective-c/test/Ice/ami/AllTests.m2
-rw-r--r--objective-c/test/Ice/binding/AllTests.m1
-rw-r--r--objective-c/test/Ice/binding/TestI.m1
-rw-r--r--objective-c/test/Ice/enums/AllTests.m3
-rw-r--r--objective-c/test/Ice/exceptions/AllTests.m1
-rw-r--r--objective-c/test/Ice/exceptions/ExceptionsTest.ice1
-rw-r--r--objective-c/test/Ice/facets/AllTests.m1
-rw-r--r--objective-c/test/Ice/hash/HashTest.ice2
-rw-r--r--objective-c/test/Ice/hold/Server.m1
-rw-r--r--objective-c/test/Ice/hold/TestI.h1
-rw-r--r--objective-c/test/Ice/hold/TestI.m1
-rw-r--r--objective-c/test/Ice/inheritance/AllTests.m1
-rw-r--r--objective-c/test/Ice/metrics/AllTests.m2
-rw-r--r--objective-c/test/Ice/objects/AllTests.m1
-rw-r--r--objective-c/test/Ice/objects/ObjectsTest.ice1
-rw-r--r--objective-c/test/Ice/objects/TestI.m4
-rw-r--r--objective-c/test/Ice/operations/OperationsTest.ice2
-rw-r--r--objective-c/test/Ice/operations/TestI.m1
-rw-r--r--objective-c/test/Ice/operations/Twoways.m2
-rw-r--r--objective-c/test/Ice/operations/TwowaysAMI.m6
-rw-r--r--objective-c/test/Ice/servantLocator/TestI.h1
-rw-r--r--objective-c/test/Ice/slicing/exceptions/TestI.m1
-rw-r--r--objective-c/test/ios/controller/Classes/AppDelegate.h1
-rw-r--r--objective-c/test/ios/controller/Classes/AppDelegate.m7
30 files changed, 0 insertions, 53 deletions
diff --git a/objective-c/src/Ice/BatchRequestInterceptor.mm b/objective-c/src/Ice/BatchRequestInterceptor.mm
index e64b94bcc14..916edd654a3 100644
--- a/objective-c/src/Ice/BatchRequestInterceptor.mm
+++ b/objective-c/src/Ice/BatchRequestInterceptor.mm
@@ -20,7 +20,6 @@
-(void) reset:(const Ice::BatchRequest*)call;
@end
-
namespace
{
diff --git a/objective-c/src/Ice/ObjectAdapterI.mm b/objective-c/src/Ice/ObjectAdapterI.mm
index 8af1acebce3..d3ae9a3cc46 100644
--- a/objective-c/src/Ice/ObjectAdapterI.mm
+++ b/objective-c/src/Ice/ObjectAdapterI.mm
@@ -861,5 +861,4 @@ typedef IceUtil::Handle<ServantLocatorWrapper> ServantLocatorWrapperPtr;
}
}
-
@end
diff --git a/objective-c/src/Ice/Stream.mm b/objective-c/src/Ice/Stream.mm
index 016b12a99be..26ca3fbe8ee 100644
--- a/objective-c/src/Ice/Stream.mm
+++ b/objective-c/src/Ice/Stream.mm
@@ -1387,7 +1387,6 @@ private:
}
}
-
-(void) skip:(ICEInt)sz
{
NSException* nsex = nil;
@@ -1916,7 +1915,6 @@ private:
}
}
-
-(void) writeProxy:(id<ICEObjectPrx>)v
{
NSException* nsex = nil;
diff --git a/objective-c/src/Ice/Util.h b/objective-c/src/Ice/Util.h
index 7aeccb74074..dcf88c64388 100644
--- a/objective-c/src/Ice/Util.h
+++ b/objective-c/src/Ice/Util.h
@@ -44,7 +44,6 @@ ICEAsyncResult* beginCppCall(void (^fn)(Ice::AsyncResultPtr&, const Ice::Context
ICEObjectPrx* = nil);
void endCppCall(void (^fn)(const Ice::AsyncResultPtr&), ICEAsyncResult*);
-
NSException* toObjCException(const std::exception&);
void rethrowCxxException(id, bool = false);
diff --git a/objective-c/src/Ice/VersionI.mm b/objective-c/src/Ice/VersionI.mm
index 7078a0746f6..ea3585ce596 100644
--- a/objective-c/src/Ice/VersionI.mm
+++ b/objective-c/src/Ice/VersionI.mm
@@ -69,7 +69,6 @@ ICE_API ICEEncodingVersion* ICECurrentEncoding;
}
@end
-
ICEProtocolVersion* ICEProtocol_1_0;
ICEProtocolVersion* ICECurrentProtocol;
ICEEncodingVersion* ICECurrentProtocolEncoding;
diff --git a/objective-c/test/Ice/admin/AllTests.m b/objective-c/test/Ice/admin/AllTests.m
index d9c8052a5cb..ec0235adeac 100644
--- a/objective-c/test/Ice/admin/AllTests.m
+++ b/objective-c/test/Ice/admin/AllTests.m
@@ -55,7 +55,6 @@ testFacets(id<ICECommunicator> com, BOOL builtInFacets)
test([facetMap objectForKey:@"Facet2"] != nil);
test([facetMap objectForKey:@"Facet3"] != nil);
-
@try
{
[com addAdminFacet:f1 facet:@"Facet1"];
@@ -411,7 +410,6 @@ adminAllTests(id<ICECommunicator> communicator)
[com trace:@"testCat" message:@"trace2"];
[com warning:@"warning2"];
-
ICELogMessageTypeSeq* messageTypes;
ICELogMessageType messageTypesArray1[] = { ICEErrorMessage, ICEWarningMessage };
diff --git a/objective-c/test/Ice/ami/AllTests.m b/objective-c/test/Ice/ami/AllTests.m
index 3f109737b43..d097ce71f70 100644
--- a/objective-c/test/Ice/ami/AllTests.m
+++ b/objective-c/test/Ice/ami/AllTests.m
@@ -617,7 +617,6 @@ amiAllTests(id<ICECommunicator> communicator, BOOL collocated)
}
tprintf("ok\n");
-
tprintf("testing batch requests with communicator... ");
{
{
@@ -685,7 +684,6 @@ amiAllTests(id<ICECommunicator> communicator, BOOL collocated)
test(r1 == r1);
test(r1 != r2);
-
if([p ice_getConnection])
{
test(([r1 sentSynchronously] && [r1 isSent] && ![r1 isCompleted]) ||
diff --git a/objective-c/test/Ice/binding/AllTests.m b/objective-c/test/Ice/binding/AllTests.m
index 713050a2ad5..e86a0123fbd 100644
--- a/objective-c/test/Ice/binding/AllTests.m
+++ b/objective-c/test/Ice/binding/AllTests.m
@@ -575,7 +575,6 @@ bindingAllTests(id<ICECommunicator> communicator)
[com deactivateObjectAdapter:[adapters objectAtIndex:2]];
-
test([[test getAdapterName] isEqualToString:@"Adapter52"]);
deactivate(com, adapters);
diff --git a/objective-c/test/Ice/binding/TestI.m b/objective-c/test/Ice/binding/TestI.m
index 8524c9b6eb1..9c2ee441380 100644
--- a/objective-c/test/Ice/binding/TestI.m
+++ b/objective-c/test/Ice/binding/TestI.m
@@ -22,7 +22,6 @@
return self;
}
-
-(id<TestBindingRemoteObjectAdapterPrx>) createObjectAdapter:(NSMutableString*)name endpoints:(NSMutableString*)endpts
current:(ICECurrent*)current
{
diff --git a/objective-c/test/Ice/enums/AllTests.m b/objective-c/test/Ice/enums/AllTests.m
index d7aa6c31cd3..5a3ef71ec7d 100644
--- a/objective-c/test/Ice/enums/AllTests.m
+++ b/objective-c/test/Ice/enums/AllTests.m
@@ -11,7 +11,6 @@
#import <TestCommon.h>
#import <EnumTest.h>
-
TestEnumTestIntfPrx*
enumAllTests(id<ICECommunicator> communicator)
{
@@ -379,8 +378,6 @@ enumAllTests(id<ICECommunicator> communicator)
}
}
-
-
tprintf("ok\n");
return proxy;
diff --git a/objective-c/test/Ice/exceptions/AllTests.m b/objective-c/test/Ice/exceptions/AllTests.m
index c65792c71e3..f1356b1e836 100644
--- a/objective-c/test/Ice/exceptions/AllTests.m
+++ b/objective-c/test/Ice/exceptions/AllTests.m
@@ -504,7 +504,6 @@ exceptionsAllTests(id<ICECommunicator> communicator)
test(false);
}
-
tprintf("ok\n");
tprintf("catching unknown non-Ice exception... ");
diff --git a/objective-c/test/Ice/exceptions/ExceptionsTest.ice b/objective-c/test/Ice/exceptions/ExceptionsTest.ice
index 2379abe52a3..ed13e35c6c6 100644
--- a/objective-c/test/Ice/exceptions/ExceptionsTest.ice
+++ b/objective-c/test/Ice/exceptions/ExceptionsTest.ice
@@ -50,7 +50,6 @@ module Mod
}
}
-
interface Thrower
{
void shutdown();
diff --git a/objective-c/test/Ice/facets/AllTests.m b/objective-c/test/Ice/facets/AllTests.m
index 2f523b0c948..ab8398c668f 100644
--- a/objective-c/test/Ice/facets/AllTests.m
+++ b/objective-c/test/Ice/facets/AllTests.m
@@ -11,7 +11,6 @@
#import <TestCommon.h>
#import <FacetsTest.h>
-
@interface FacetsEmptyI : TestFacetsEmpty
@end
diff --git a/objective-c/test/Ice/hash/HashTest.ice b/objective-c/test/Ice/hash/HashTest.ice
index 9b666914c28..6696be11589 100644
--- a/objective-c/test/Ice/hash/HashTest.ice
+++ b/objective-c/test/Ice/hash/HashTest.ice
@@ -13,7 +13,6 @@
module Test
{
-
exception BaseException
{
}
@@ -36,7 +35,6 @@ exception OtherException
bool b;
}
-
struct PointF
{
float x;
diff --git a/objective-c/test/Ice/hold/Server.m b/objective-c/test/Ice/hold/Server.m
index 4ef3089507e..33206b4ecb3 100644
--- a/objective-c/test/Ice/hold/Server.m
+++ b/objective-c/test/Ice/hold/Server.m
@@ -21,7 +21,6 @@ run(id<ICECommunicator> communicator)
[[communicator getProperties] setProperty:@"TestAdapter1.ThreadPool.Serialize" value:@"0"];
id<ICEObjectAdapter> adapter1 = [communicator createObjectAdapter:@"TestAdapter1"];
-
[[communicator getProperties] setProperty:@"TestAdapter2.Endpoints" value:@"default -p 12011 -t 10000:udp"];
[[communicator getProperties] setProperty:@"TestAdapter2.ThreadPool.Size" value:@"5"];
[[communicator getProperties] setProperty:@"TestAdapter2.ThreadPool.SizeMax" value:@"5"];
diff --git a/objective-c/test/Ice/hold/TestI.h b/objective-c/test/Ice/hold/TestI.h
index 96e19829c60..cdf8397c4f3 100644
--- a/objective-c/test/Ice/hold/TestI.h
+++ b/objective-c/test/Ice/hold/TestI.h
@@ -7,7 +7,6 @@
//
// **********************************************************************
-
#import <HoldTest.h>
#include <dispatch/dispatch.h>
diff --git a/objective-c/test/Ice/hold/TestI.m b/objective-c/test/Ice/hold/TestI.m
index 335c8eba800..2a5cc0d1501 100644
--- a/objective-c/test/Ice/hold/TestI.m
+++ b/objective-c/test/Ice/hold/TestI.m
@@ -123,7 +123,6 @@
return 0;
}
-
-(void) setOneway:(ICEInt)value expected:(ICEInt)expected current:(ICECurrent*)current
{
@synchronized(self)
diff --git a/objective-c/test/Ice/inheritance/AllTests.m b/objective-c/test/Ice/inheritance/AllTests.m
index 81c74d99039..4f5a903d5c9 100644
--- a/objective-c/test/Ice/inheritance/AllTests.m
+++ b/objective-c/test/Ice/inheritance/AllTests.m
@@ -11,7 +11,6 @@
#import <TestCommon.h>
#import <InheritanceTest.h>
-
id<TestInheritanceInitialPrx>
inheritanceAllTests(id<ICECommunicator> communicator)
{
diff --git a/objective-c/test/Ice/metrics/AllTests.m b/objective-c/test/Ice/metrics/AllTests.m
index 687918e441c..57ef77cc91b 100644
--- a/objective-c/test/Ice/metrics/AllTests.m
+++ b/objective-c/test/Ice/metrics/AllTests.m
@@ -201,7 +201,6 @@ NSCondition* cond;
}
@end
-
@interface InvokeOp : Operation
-(id) init:(ICEObjectPrx*)proxy_;
+(id) invokeOp:(ICEObjectPrx*)proxy_;
@@ -1130,7 +1129,6 @@ metricsAllTests(id<ICECommunicator> communicator)
tprintf("testing metrics view enable/disable...");
-
[props setObject:@"none" forKey:@"IceMX.Metrics.View.GroupBy"];
[props setObject:@"0" forKey:@"IceMX.Metrics.View.Disabled"];
updateProps(clientProps, serverProps, update, props, @"Thread");
diff --git a/objective-c/test/Ice/objects/AllTests.m b/objective-c/test/Ice/objects/AllTests.m
index cea5cc6e22a..3e6717bd642 100644
--- a/objective-c/test/Ice/objects/AllTests.m
+++ b/objective-c/test/Ice/objects/AllTests.m
@@ -618,6 +618,5 @@ objectsAllTests(id<ICECommunicator> communicator, BOOL collocated)
// cross-test server does not implement this object
}
-
return initial;
}
diff --git a/objective-c/test/Ice/objects/ObjectsTest.ice b/objective-c/test/Ice/objects/ObjectsTest.ice
index 06ebcd245bc..a2a8b862068 100644
--- a/objective-c/test/Ice/objects/ObjectsTest.ice
+++ b/objective-c/test/Ice/objects/ObjectsTest.ice
@@ -37,7 +37,6 @@ class AbstractBase extends Base
void op();
}
-
class B;
class C;
diff --git a/objective-c/test/Ice/objects/TestI.m b/objective-c/test/Ice/objects/TestI.m
index 75977e5d138..b96e69253c5 100644
--- a/objective-c/test/Ice/objects/TestI.m
+++ b/objective-c/test/Ice/objects/TestI.m
@@ -161,7 +161,6 @@
return _b2;
}
-
-(TestObjectsC*) getC:(ICECurrent*)current
{
_b1.preMarshalInvoked = NO;
@@ -170,7 +169,6 @@
return _c;
}
-
-(TestObjectsD*) getD:(ICECurrent*)current
{
_b1.preMarshalInvoked = NO;
@@ -180,13 +178,11 @@
return _d;
}
-
-(TestObjectsE*) getE:(ICECurrent*)current
{
return _e;
}
-
-(TestObjectsF*) getF:(ICECurrent*)current
{
return _f;
diff --git a/objective-c/test/Ice/operations/OperationsTest.ice b/objective-c/test/Ice/operations/OperationsTest.ice
index 0186627b3b7..654afb00918 100644
--- a/objective-c/test/Ice/operations/OperationsTest.ice
+++ b/objective-c/test/Ice/operations/OperationsTest.ice
@@ -173,7 +173,6 @@ interface MyClass
LongSS opShortIntLongSS(ShortSS p1, IntSS p2, LongSS p3,
out ShortSS p4, out IntSS p5, out LongSS p6);
-
DoubleSS opFloatDoubleSS(FloatSS p1, DoubleSS p2,
out FloatSS p3, out DoubleSS p4);
@@ -326,7 +325,6 @@ interface MyDerivedClass extends MyClass
MyStruct1 opMyStruct1(MyStruct1 c);
}
-
//
// String literals
//
diff --git a/objective-c/test/Ice/operations/TestI.m b/objective-c/test/Ice/operations/TestI.m
index 1059d754513..1dd7d277063 100644
--- a/objective-c/test/Ice/operations/TestI.m
+++ b/objective-c/test/Ice/operations/TestI.m
@@ -682,7 +682,6 @@
return p;
}
-
-(ICEFloat) opFloat1:(ICEFloat)p current:(ICECurrent*)current
{
return p;
diff --git a/objective-c/test/Ice/operations/Twoways.m b/objective-c/test/Ice/operations/Twoways.m
index f3d9dcb37d5..96495a55ce8 100644
--- a/objective-c/test/Ice/operations/Twoways.m
+++ b/objective-c/test/Ice/operations/Twoways.m
@@ -85,7 +85,6 @@ twoways(id<ICECommunicator> communicator, id<TestOperationsMyClassPrx> p)
test([TestOperationss0 isEqualToString:[literals objectAtIndex: 0]]);
-
test([TestOperationss0 isEqualToString:@"\\"] &&
[TestOperationss0 isEqualToString:TestOperationssw0] &&
[TestOperationss0 isEqualToString:[literals objectAtIndex:0]] &&
@@ -1593,7 +1592,6 @@ twoways(id<ICECommunicator> communicator, id<TestOperationsMyClassPrx> p)
TestOperationsMutableMyEnumMyEnumSD *sdi1 = [TestOperationsMutableMyEnumMyEnumSD dictionary];
TestOperationsMutableMyEnumMyEnumSD *sdi2 = [TestOperationsMutableMyEnumMyEnumSD dictionary];
-
TestOperationsMyEnum buf1[] = { TestOperationsenum1, TestOperationsenum1, TestOperationsenum2 };
TestOperationsMyEnum buf2[] = { TestOperationsenum1, TestOperationsenum2 };
TestOperationsMyEnum buf3[] = { TestOperationsenum3, TestOperationsenum3 };
diff --git a/objective-c/test/Ice/operations/TwowaysAMI.m b/objective-c/test/Ice/operations/TwowaysAMI.m
index 4b54b6ae273..20dbd7cd45e 100644
--- a/objective-c/test/Ice/operations/TwowaysAMI.m
+++ b/objective-c/test/Ice/operations/TwowaysAMI.m
@@ -1200,7 +1200,6 @@ twowaysAMI(id<ICECommunicator> communicator, id<TestOperationsMyClassPrx> p)
[ssi2 addObject:@"xyz"];
-
TestAMIOperationsCallback* cb = [TestAMIOperationsCallback create];
[p begin_opStringS:ssi1 p2:ssi2 response:^(TestOperationsMutableStringS* ret, TestOperationsMutableStringS* p3) { [cb opStringSResponse:ret p3:p3]; } exception:^(ICEException* ex) { [cb opStringSException:ex]; }];
test([cb check]);
@@ -1398,7 +1397,6 @@ twowaysAMI(id<ICECommunicator> communicator, id<TestOperationsMyClassPrx> p)
[di2 setObject:@"abc -100.4" forKey:@"FOO"];
[di2 setObject:@"abc 0.5" forKey:@"BAR"];
-
TestAMIOperationsCallback* cb = [TestAMIOperationsCallback create];
[p begin_opStringStringD:di1 p2:di2 response:^(TestOperationsMutableStringStringD* ret, TestOperationsMutableStringStringD* p3) { [cb opStringStringDResponse:ret p3:p3]; } exception:^(ICEException* ex) { [cb opStringStringDException:ex]; }];
test([cb check]);
@@ -1909,7 +1907,6 @@ twowaysAMI(id<ICECommunicator> communicator, id<TestOperationsMyClassPrx> p)
TestOperationsMutableMyEnumMyEnumSD *sdi1 = [TestOperationsMutableMyEnumMyEnumSD dictionary];
TestOperationsMutableMyEnumMyEnumSD *sdi2 = [TestOperationsMutableMyEnumMyEnumSD dictionary];
-
TestOperationsMyEnum buf1[] = { TestOperationsenum1, TestOperationsenum1, TestOperationsenum2 };
TestOperationsMyEnum buf2[] = { TestOperationsenum1, TestOperationsenum2 };
TestOperationsMyEnum buf3[] = { TestOperationsenum3, TestOperationsenum3 };
@@ -1978,7 +1975,6 @@ twowaysAMI(id<ICECommunicator> communicator, id<TestOperationsMyClassPrx> p)
[p2 begin_opContext:^(ICEMutableContext* ctx) { [cb opNonEmptyContextResponse:ctx]; } exception:^(ICEException* ex) { [cb opContextException:ex]; }];
test([cb check]);
-
cb = [TestAMIOperationsCallback create];
[p2 begin_opContext:ctx response:^(ICEMutableContext* ctx) { [cb opNonEmptyContextResponse:ctx]; } exception:^(ICEException* ex) { [cb opContextException:ex]; }];
test([cb check]);
@@ -2055,8 +2051,6 @@ twowaysAMI(id<ICECommunicator> communicator, id<TestOperationsMyClassPrx> p)
}
}
-
-
{
ICEDouble d = 1278312346.0 / 13.0;
TestOperationsMutableDoubleS *ds = [TestOperationsMutableDoubleS dataWithLength:(5 * sizeof(ICEDouble))];
diff --git a/objective-c/test/Ice/servantLocator/TestI.h b/objective-c/test/Ice/servantLocator/TestI.h
index fbeab7892fa..d46ba47bfb0 100644
--- a/objective-c/test/Ice/servantLocator/TestI.h
+++ b/objective-c/test/Ice/servantLocator/TestI.h
@@ -10,7 +10,6 @@
#import <objc/Ice.h>
#import <ServantLocatorTest.h>
-
@interface TestServantLocatorTestIntfI : TestServantLocatorTestIntf<TestServantLocatorTestIntf>
@end
diff --git a/objective-c/test/Ice/slicing/exceptions/TestI.m b/objective-c/test/Ice/slicing/exceptions/TestI.m
index 818a7f956db..c77d4a7c1bd 100644
--- a/objective-c/test/Ice/slicing/exceptions/TestI.m
+++ b/objective-c/test/Ice/slicing/exceptions/TestI.m
@@ -148,7 +148,6 @@
test(NO);
}
-
-(void) shutdown:(ICECurrent*)current
{
[[current.adapter getCommunicator] shutdown];
diff --git a/objective-c/test/ios/controller/Classes/AppDelegate.h b/objective-c/test/ios/controller/Classes/AppDelegate.h
index bdbf2a2e808..69088212d4b 100644
--- a/objective-c/test/ios/controller/Classes/AppDelegate.h
+++ b/objective-c/test/ios/controller/Classes/AppDelegate.h
@@ -13,5 +13,4 @@
@property (strong, nonatomic) UIWindow *window;
-
@end
diff --git a/objective-c/test/ios/controller/Classes/AppDelegate.m b/objective-c/test/ios/controller/Classes/AppDelegate.m
index 405da278fb7..74a582f002b 100644
--- a/objective-c/test/ios/controller/Classes/AppDelegate.m
+++ b/objective-c/test/ios/controller/Classes/AppDelegate.m
@@ -15,38 +15,31 @@
@implementation AppDelegate
-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
-
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
-
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
-
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
-
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
-
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
-
@end