Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
What I'm trying to figure out is how to automatically save and load data using NSUserDefaults. I know how to do save and load data if I have save and load button, using NSUserDefault. I'm not sure which of the methods I should be using in the AppDelegate, if that is right?
Can somebody point me help me, please?
Thanks
Sam x.
Depends on when (at which point in the lifecycle of the application) you want the loading and saving to happen. The earliest point for loading though I think is when applicationDidFinishLaunching is called.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Is there a way to take a screenshot in UE4 while in-game and save it somewhere so that I can use it again as an image or something?
There is a HighResShot solution, but that saves it somewhere outside the range of the editor (you cannot reach it programmatically), is there another way of doing it, that allows me to access it in-game?
I would recommend using HighResShot for taking the screenshots. As you mention, it saves this outside the range of the engine, in the "saved" folder. (In packaged builds, the saved content is in the user's appdata.) You can actually get this with ProjectSavedDir(), which returns this saved directory. https://docs.unrealengine.com/en-US/API/Runtime/Core/Misc/FPaths/index.html
It's C++, but you can expose this to Blueprints fairly easily. You can get the ProjectSavedDir()/Screenshots directory and load the images in-game. For doing this, I recommend the Ramas plugin (https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/4014-39-rama-s-extra-blueprint-nodes-for-you-as-a-plugin-no-c-required?3851-(39)-Rama-s-Extra-Blueprint-Nodes-for-You-as-a-Plugin-No-C-Required=)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am using AWCollectionViewDialLayout demo provided on git below is the link:- https://github.com/awdigital/AWCollectionViewDialLayout
I want to make labels straight.
Please Help.
In your specific example, your cell itself is rotated, not just the label. So you cannot only make the label straight and keep the image rotated.
If you still wants to make both element straight, take a look on the source file of the libarary. You are looking for variable called rotationT
on line 181. Just keep its value to 0 and have a try
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How do you store big objects using NSUserDefaults efficiently? Any help will be appreciated. Thanks!
I would avoid using NSUserDefaults for anything large that you want to store. You are better off either writing the data to a file or storing it in a db such as core data. Depending on what you are trying to store one of these can make more sense then the other.
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CoreData/cdProgrammingGuide.html
You can look at NSKeyedArchiver or NSFileManager plus whatever type of data you are working with for more information about how to write it to a file.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What tricks can I do to make my app feel "snappier"?
For example, when I click on a menu button, which loads a different nib file, there is this 1 second delay before the new view shows up, making it feel like the app isn't responsive.
Thank you,
Tee
You could reduce the nib load time by simplifying the content or making some of it load after the view controller appears on-screen.
You can run Instruments on it to try and get an idea of where the choke point is. If it feels unresponsive, compared to other apps, then maybe you're doing something wrong or computationally expensive.
Check that your images are sized correctly. If they're too big that'll up the load time + memory usage.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Maybe the question is too general. Though, I dare asking it. Here's the situation: I have tested my app on my iPad and it worked great. It was submitted to Apple and approved. After I download it, it crashes when I do certain actions: example - presenting a modal view controller which contains a photo gallery. I tested it again and it worked. Soon after redownload it had the same strange behavior. How to debug such a situation? Thanks.
You should better have used something like Quincy Kit.