Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Can i save more variables as NSUserDefaults?
When these variables get released?
Thank you.
When you remove the app from the device then only the data in the NSUserDefaults will be erased .
NSUserDefaults is not a mechanism for extending the lifetime of objects. It may not retain them at all (specifically, it may copy them and retain the copy instead)! It may save them to disk at arbitrary and unknowable intervals, and release them then. It may release them in response to memory pressure, or it may not.
NSUserDefaults is, only, a mechanism for storing and retrieving preferences. It's extremely good at that. Don't use it for other things.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to replicate the default clock app in my app. Is there any way i can use the default app in my application or i should create a new one inside my app.I would be needing the world clock function in my app , What is the best method to implement it? Thanks in advance.
No, you cannot re-use the current 'World Clock' app within your own. You are going to have to replicate this functionality yourself.
CocoaControls does have a number of open source 'clock' controls that you might find useful.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
How do I send an array through the internet from an OSX computer to an IOS device, Sorry I don't know to much about Objective C I am planning on creation an application and I haven't yet started creating it.
Thanks
What you basically want to do is use your OS X as a server. and then download information from there. If you are new to Objective-C I would recommend you read some tutorials before you get started.
Here you can find some general iOS tutorials: http://www.raywenderlich.com/tutorials
Here you can find one on NSURLSession (connecting to servers): http://www.raywenderlich.com/51127/nsurlsession-tutorial
Do some research before starting, or else it will probably result in a bad architected code. There also are several Stack Overflow questions with good references.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I'm new in coredata, and I don't understand few things.
I'm trying to make web browser history. And if I save in webviewdidFinishLoad string webpage title and url, it does it well. But if I visit in same page again, it saves same title and url again. I want something that replace old string with new. Like it happens in SQLite - if I write "TEXT UNIQUE".
It's probably is wierd question, but I can't find anything useful!
First of Core Data is not a SQL data base, it just makes it easy to persist and handle related objects. You will need to write code to fetch the entire entries persisted and then have a for loop or NSPredicate to check the uniqueness and then persist if not already present.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to call a method of an application A from my another application B's code in ios and also want to pass arguments.
Is it possible with socket programming if yes than please give some idea about how to do that.
Thanks.
The only interprocess communication allowed by Apple on the AppStore is using URL handlers.
For more information, read here.
Using x-callback-url’s source apps can launch other apps passing data
and context information, and also provide parameters instructing the
target app to return data and control back to the source app after
executing an action.
Please refer this link for tutorials and sample code.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How do you clear a Core Animation cache programmatically if any. With time, my app's performance gets very slow and the profile instrument tells me it's because of Core Animation. I was hoping if it will be possible to refresh core animation in my app from time to time.
I believe it is not a cache issue, even its if you mess up within this area you will have another issue, I suggest to run the profiler and check if you have a leak somewhere, make sure you are releasing all your ivars porperly, use
CGImageRelease(cgImage), CGPathRelease(path), ..etc
plus take a look here and here also