¡@

Home 

2014/10/15 ¤U¤È 10:12:18

iphone Programming Glossary: of

How to check for an active Internet Connection on iPhone SDK?

http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk

framework to the project but don't worry about including it anywhere 2 Add Tony Million's version of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability.. 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement.. Reachability internetReachableFoo @end 4 Then implement this method in the .m file of your view controller which you can call Checks if we have an internet connection or not void testInternetConnection..

How to develop or migrate apps for iPhone 5 screen resolution?

http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution

ios screen resolution iphone 5 share improve this question Download and install latest version of Xcode . Set a 4 inch launch image for your app. This is how you get 1136 px screen height without it.. you have to do for the larger screen specifically then it looks like you have to check height of UIScreen mainScreen bounds or applicationFrame but then you need to consider status bar height if it's..

Symbolicating iPhone App Crash Reports

http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight... to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried invoking.. the release .app file which was pushed to the appstore the .dSYM file that was created at the time of release and the crash report receive from APPLE into a FOLDER. OPEN terminal application and go to the..

How do I do base64 encoding on iphone-sdk?

http://stackoverflow.com/questions/392464/how-do-i-do-base64-encoding-on-iphone-sdk

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

this question An Objective C delegate is just an object that has been assigned as a delegate of another. There's no special process for creating them you simply define a class that implements the.. MyClass void windowDidMove NSNotification notification ... @end Then you could create an instance of MyClass and assign it as the window's delegate MyClass myDelegate MyClass alloc init window setDelegate.. is typically declared weak in ARC or assign pre ARC to avoid retain loops since the delegate of an object often holds a strong reference to that object. For example a view controller is often the..

Set the location in iPhone Simulator

http://stackoverflow.com/questions/214416/set-the-location-in-iphone-simulator

ride City Run and Freeway Drive are simulation of a moving location in Cupertino of course . Of course this does nothing to help with debugging for iOS 4 or earlier but it's a definite improvement..

Does UIGestureRecognizer work on a UIWebView?

http://stackoverflow.com/questions/2909807/does-uigesturerecognizer-work-on-a-uiwebview

with a UIWebview which is a subview of a UIScrollView. This sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires but when numberOfTouchesRequired is set to one the selector.. sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires but when numberOfTouchesRequired is set to one the selector doesn't fire. Here is my code UITapGestureRecognizer tap1.. tap1 UITapGestureRecognizer alloc initWithTarget self action @selector select1 tap1.numberOfTouchesRequired 2 tap1.numberOfTapsRequired 1 tap1.delegate self self.ans1WebView addGestureRecognizer..

How To Make iPhone App compatible with multiple SDK (firmware) versions

http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions

have to make sure not to call a method that is 5.0 or 4.X only when your app is on a 4.0 device. Of course you have to gracefully handle working on older versions by either using older methods or not..

How to determine the content size of a UIWebView?

http://stackoverflow.com/questions/3936041/how-to-determine-the-content-size-of-a-uiwebview

Since we do both frame changes right after each other the view isn't updated and doesn't flicker. Of course we have to wait until the content has been loaded so we put the code into the webViewDidFinishLoad..

Is there a way to make drawRect work right NOW?

http://stackoverflow.com/questions/4739748/is-there-a-way-to-make-drawrect-work-right-now

complicated artwork and 4 at each step you setNeedsDisplay wrong 5 until all the work is done 6 Of course when you do that all that happens is that drawRect is run once only after step 6. What you want.. runMode NSDefaultRunLoopMode beforeDate NSDate date This is a truly amazing piece of engineering. Of course one should be extremely careful when manipulating the run loop and as many pointed out this approach..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

I have looked at REST frameworks such as ObjectiveResource Core Resource and RestfulCoreData . Of course these are all working with Ruby on Rails which I am not tied to but it's a place to start. The..

MKAnnotationView - Lock custom annotation view to pin on location updates

http://stackoverflow.com/questions/6392931/mkannotationview-lock-custom-annotation-view-to-pin-on-location-updates

my pin moves around after location updates the callout annotation stays in it's original location. Of course I'd like to mimic the iOS standard and have the custom callout annotation track along with the..

`[super viewDidLoad]` convention

http://stackoverflow.com/questions/844195/super-viewdidload-convention

implementation does. Though you shouldn't have to know super's implementation to write yours. Of course this goes for all of UIViewControllers delegate methods willAppear didAppear etc... Any thoughts..

iPhone app without AppStore

http://stackoverflow.com/questions/982476/iphone-app-without-appstore

You can distribute an unlimited number of applications like this. Apple gets a 30 cut. Of course Apple must approve your applicaion. Ad hoc You can distribute applications using ad hoc without..

How to check for an active Internet Connection on iPhone SDK?

http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk

and GCD compatible class to do it 1 Add SystemConfiguration framework to the project but don't worry about including it anywhere 2 Add Tony Million's version of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add.. project found here https github.com tonymillion Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in the .m file of your view controller which.. in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in the .m file of your view controller which you can call Checks if we have an internet connection or not void testInternetConnection internetReachableFoo Reachability reachabilityWithHostname..

How to develop or migrate apps for iPhone 5 screen resolution?

http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution

older displays and the new widescreen aspect ratio iphone ios screen resolution iphone 5 share improve this question Download and install latest version of Xcode . Set a 4 inch launch image for your app. This is how you get 1136 px screen height without it you will get 960 px with black margins on top and bottom ... only want to support iOS 6 going forward. If there is something you have to do for the larger screen specifically then it looks like you have to check height of UIScreen mainScreen bounds or applicationFrame but then you need to consider status bar height if it's present as there seems to be no specific API for that. Example..

Symbolicating iPhone App Crash Reports

http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

the crash reports from iTunes Connect. I have the application binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried invoking symbolicatecrash crashreport.crash.. iTunes Connect. I have the application binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried invoking symbolicatecrash crashreport.crash myApp.app.dSYM and.. question Steps to analyze crash report from apple Copy the release .app file which was pushed to the appstore the .dSYM file that was created at the time of release and the crash report receive from APPLE into a FOLDER. OPEN terminal application and go to the folder created above using CD command atos arch armv7 o YOURAPP.app..

How do I do base64 encoding on iphone-sdk?

http://stackoverflow.com/questions/392464/how-do-i-do-base64-encoding-on-iphone-sdk

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

them iphone ios objective c cocoa delegates share improve this question An Objective C delegate is just an object that has been assigned as a delegate of another. There's no special process for creating them you simply define a class that implements the delegate methods you're interested in. Though with delegates.. method you could create a class like this @implementation MyClass void windowDidMove NSNotification notification ... @end Then you could create an instance of MyClass and assign it as the window's delegate MyClass myDelegate MyClass alloc init window setDelegate myDelegate On the NSWindow side it probably has code similar.. delegate windowDidMove notification The delegate property itself is typically declared weak in ARC or assign pre ARC to avoid retain loops since the delegate of an object often holds a strong reference to that object. For example a view controller is often the delegate of a view it contains. To define your own delegates..

Set the location in iPhone Simulator

http://stackoverflow.com/questions/214416/set-the-location-in-iphone-simulator

Does UIGestureRecognizer work on a UIWebView?

http://stackoverflow.com/questions/2909807/does-uigesturerecognizer-work-on-a-uiwebview

I am attempting to get a UIGestureRecognizer working with a UIWebview which is a subview of a UIScrollView. This sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires but when numberOfTouchesRequired is set to one the selector doesn't fire. Here is my code UITapGestureRecognizer tap1.. with a UIWebview which is a subview of a UIScrollView. This sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires but when numberOfTouchesRequired is set to one the selector doesn't fire. Here is my code UITapGestureRecognizer tap1 UITapGestureRecognizer alloc initWithTarget self action @selector.. the selector doesn't fire. Here is my code UITapGestureRecognizer tap1 UITapGestureRecognizer alloc initWithTarget self action @selector select1 tap1.numberOfTouchesRequired 2 tap1.numberOfTapsRequired 1 tap1.delegate self self.ans1WebView addGestureRecognizer tap1 tap1 release void select1 UILongPressGestureRecognizer..

How To Make iPhone App compatible with multiple SDK (firmware) versions

http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions

see that a newer method is available before calling it. You have to make sure not to call a method that is 5.0 or 4.X only when your app is on a 4.0 device. Of course you have to gracefully handle working on older versions by either using older methods or not supporting particular features that need newer SDK support...

How to determine the content size of a UIWebView?

http://stackoverflow.com/questions/3936041/how-to-determine-the-content-size-of-a-uiwebview

size. This sounds terrible but it's actually not that bad. Since we do both frame changes right after each other the view isn't updated and doesn't flicker. Of course we have to wait until the content has been loaded so we put the code into the webViewDidFinishLoad delegate method. void webViewDidFinishLoad UIWebView aWebView..

Is there a way to make drawRect work right NOW?

http://stackoverflow.com/questions/4739748/is-there-a-way-to-make-drawrect-work-right-now

some function 2 which incrementally 3 creates a more and more complicated artwork and 4 at each step you setNeedsDisplay wrong 5 until all the work is done 6 Of course when you do that all that happens is that drawRect is run once only after step 6. What you want is for the ^ £@ @ view to be refreshed at point 5. This can.. Here's how you trigger the run loop NSRunLoop currentRunLoop runMode NSDefaultRunLoopMode beforeDate NSDate date This is a truly amazing piece of engineering. Of course one should be extremely careful when manipulating the run loop and as many pointed out this approach is strictly for experts. The Bizarre Problem That Arises................................................

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

Is there anything fancy that I need to be thinking about I have looked at REST frameworks such as ObjectiveResource Core Resource and RestfulCoreData . Of course these are all working with Ruby on Rails which I am not tied to but it's a place to start. The main requirements I have for my solution are Any changes should..

MKAnnotationView - Lock custom annotation view to pin on location updates

http://stackoverflow.com/questions/6392931/mkannotationview-lock-custom-annotation-view-to-pin-on-location-updates

together. When using the custom callout solution above when my pin moves around after location updates the callout annotation stays in it's original location. Of course I'd like to mimic the iOS standard and have the custom callout annotation track along with the pin. Here's the code I have so far that's successfully moving..

`[super viewDidLoad]` convention

http://stackoverflow.com/questions/844195/super-viewdidload-convention

you code This could have consequences depending on what super's implementation does. Though you shouldn't have to know super's implementation to write yours. Of course this goes for all of UIViewControllers delegate methods willAppear didAppear etc... Any thoughts iphone objective c cocoa cocoa touch share improve this..

iPhone app without AppStore

http://stackoverflow.com/questions/982476/iphone-app-without-appstore

this method anyone with an iPhone can have access to the application. You can distribute an unlimited number of applications like this. Apple gets a 30 cut. Of course Apple must approve your applicaion. Ad hoc You can distribute applications using ad hoc without going through the app store but you are limited to a maximum..

How to check for an active Internet Connection on iPhone SDK?

http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk

SystemConfiguration framework to the project but don't worry about including it anywhere 2 Add Tony Million's version of Reachability.h and Reachability.m to the project found here https github.com tonymillion Reachability 3 Update the interface.. Reachability 3 Update the interface section #import Reachability.h Add this to the interface in the .m file of your view controller @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in.. @interface MyViewController Reachability internetReachableFoo @end 4 Then implement this method in the .m file of your view controller which you can call Checks if we have an internet connection or not void testInternetConnection internetReachableFoo..

How to develop or migrate apps for iPhone 5 screen resolution?

http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution

ratio iphone ios screen resolution iphone 5 share improve this question Download and install latest version of Xcode . Set a 4 inch launch image for your app. This is how you get 1136 px screen height without it you will get 960 px.. If there is something you have to do for the larger screen specifically then it looks like you have to check height of UIScreen mainScreen bounds or applicationFrame but then you need to consider status bar height if it's present as there..

Symbolicating iPhone App Crash Reports

http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

I have the application binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried.. binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried invoking symbolicatecrash.. from apple Copy the release .app file which was pushed to the appstore the .dSYM file that was created at the time of release and the crash report receive from APPLE into a FOLDER. OPEN terminal application and go to the folder created above..

How do I do base64 encoding on iphone-sdk?

http://stackoverflow.com/questions/392464/how-do-i-do-base64-encoding-on-iphone-sdk

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

share improve this question An Objective C delegate is just an object that has been assigned as a delegate of another. There's no special process for creating them you simply define a class that implements the delegate methods you're.. this @implementation MyClass void windowDidMove NSNotification notification ... @end Then you could create an instance of MyClass and assign it as the window's delegate MyClass myDelegate MyClass alloc init window setDelegate myDelegate On the.. delegate property itself is typically declared weak in ARC or assign pre ARC to avoid retain loops since the delegate of an object often holds a strong reference to that object. For example a view controller is often the delegate of a view it..

iphone: Calculating battery life

http://stackoverflow.com/questions/1469549/iphone-calculating-battery-life

Also there are stats for using 2G cell as opposed to 3G and I dont see anything on Apple for 2G battery life. Of course some of the apps claim they are 'the most accurate'... but I dont see that happening unless someone has a source..

Strange problem comparing floats in objective-C

http://stackoverflow.com/questions/1614533/strange-problem-comparing-floats-in-objective-c

error. The problem now is that by casting the float to a double you carry over the bigger of error of the float . Of course they aren't gone compare equal now. Instead of using float 0.1 you could use 0.1f which is a bit nicer to read. ..

Is there a way to change the height of a UIToolbar?

http://stackoverflow.com/questions/2135407/is-there-a-way-to-change-the-height-of-a-uitoolbar

of a UIToolbar I've got an UIToolbar in Interface Builder and I've noticed that it's locked to being 44px tall. Of course I'd like to make this larger. Does Apple allow resizing of this control If so how do I go about it iphone xcode.. just set its frame differently myToolbar setFrame CGRectMake 0 50 320 35 This will make your toolbar 35 pixels tall. Of course this requires an IBOutlet or creating the UIToolbar programmatically but that's very easy to do. share improve this..

Set the location in iPhone Simulator

http://stackoverflow.com/questions/214416/set-the-location-in-iphone-simulator

a Lat Long value. Bicycle ride City Run and Freeway Drive are simulation of a moving location in Cupertino of course . Of course this does nothing to help with debugging for iOS 4 or earlier but it's a definite improvement share improve this..

What exactly must I do in viewDidUnload?

http://stackoverflow.com/questions/2261972/what-exactly-must-i-do-in-viewdidunload

itself can be loaded and unloaded as required init viewDidLoad viewDidUnload viewDidLoad viewDidUnload ... dealloc Of course it doesn't hurt to release things in your dealloc method as well as long as you set them to nil when you release..

How to set the width of a cell in a UITableView in grouped style

http://stackoverflow.com/questions/2539021/how-to-set-the-width-of-a-cell-in-a-uitableview-in-grouped-style

unreliable the superview or parent view controller may adjust table view frame further after viewWillAppear is called. Of course you can subclass and override setFrame for your UITableView just like what I do here for UITableViewCells. However..

Does UIGestureRecognizer work on a UIWebView?

http://stackoverflow.com/questions/2909807/does-uigesturerecognizer-work-on-a-uiwebview

working with a UIWebview which is a subview of a UIScrollView. This sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires but when numberOfTouchesRequired is set to one the selector doesn't fire. Here.. a UIScrollView. This sounds odd but when I have the numberOfTouchesRequired set to 2 the selector fires but when numberOfTouchesRequired is set to one the selector doesn't fire. Here is my code UITapGestureRecognizer tap1 UITapGestureRecognizer.. code UITapGestureRecognizer tap1 UITapGestureRecognizer alloc initWithTarget self action @selector select1 tap1.numberOfTouchesRequired 2 tap1.numberOfTapsRequired 1 tap1.delegate self self.ans1WebView addGestureRecognizer tap1 tap1 release..

How To Make iPhone App compatible with multiple SDK (firmware) versions

http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions

calling it. You have to make sure not to call a method that is 5.0 or 4.X only when your app is on a 4.0 device. Of course you have to gracefully handle working on older versions by either using older methods or not supporting particular..

How to determine the content size of a UIWebView?

http://stackoverflow.com/questions/3936041/how-to-determine-the-content-size-of-a-uiwebview

not that bad. Since we do both frame changes right after each other the view isn't updated and doesn't flicker. Of course we have to wait until the content has been loaded so we put the code into the webViewDidFinishLoad delegate method...

Adding “Open In…” option to iOS app

http://stackoverflow.com/questions/3981199/adding-open-in-option-to-ios-app

Is there a way to make drawRect work right NOW?

http://stackoverflow.com/questions/4739748/is-there-a-way-to-make-drawrect-work-right-now

a more and more complicated artwork and 4 at each step you setNeedsDisplay wrong 5 until all the work is done 6 Of course when you do that all that happens is that drawRect is run once only after step 6. What you want is for the ^ £@ @.. currentRunLoop runMode NSDefaultRunLoopMode beforeDate NSDate date This is a truly amazing piece of engineering. Of course one should be extremely careful when manipulating the run loop and as many pointed out this approach is strictly..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

to be thinking about I have looked at REST frameworks such as ObjectiveResource Core Resource and RestfulCoreData . Of course these are all working with Ruby on Rails which I am not tied to but it's a place to start. The main requirements..

Can somebody explain the process of a UIViewController birth (which method follows which)?

http://stackoverflow.com/questions/5107604/can-somebody-explain-the-process-of-a-uiviewcontroller-birth-which-method-follo

you can create a view subviews other viewControllers and any connections between these objects in any way you please. Of course this means that you are also responsible for memory management with respect to the objects that you create. If your..

NSString retainCount is 2147483647 [duplicate]

http://stackoverflow.com/questions/5483357/nsstring-retaincount-is-2147483647

consuming copy of a constant immutable string and thus returns the already existing constant string. I.e. a singleton. Of a class whose instances are only ever created by the compiler. For which retain release autorelease retainCount are utterly..

MKAnnotationView - Lock custom annotation view to pin on location updates

http://stackoverflow.com/questions/6392931/mkannotationview-lock-custom-annotation-view-to-pin-on-location-updates

solution above when my pin moves around after location updates the callout annotation stays in it's original location. Of course I'd like to mimic the iOS standard and have the custom callout annotation track along with the pin. Here's the code..

`[super viewDidLoad]` convention

http://stackoverflow.com/questions/844195/super-viewdidload-convention

on what super's implementation does. Though you shouldn't have to know super's implementation to write yours. Of course this goes for all of UIViewControllers delegate methods willAppear didAppear etc... Any thoughts iphone objective..

iPhone app without AppStore

http://stackoverflow.com/questions/982476/iphone-app-without-appstore

have access to the application. You can distribute an unlimited number of applications like this. Apple gets a 30 cut. Of course Apple must approve your applicaion. Ad hoc You can distribute applications using ad hoc without going through the..

How to post more parameters with image upload code in iOS?

http://stackoverflow.com/questions/10618056/how-to-post-more-parameters-with-image-upload-code-in-ios

notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY.. be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE.. SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS..

Tap pressure strength detection using accelerometer

http://stackoverflow.com/questions/5179426/tap-pressure-strength-detection-using-accelerometer

and the following disclaimer in the documentation and or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED.. BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT.. FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY..