Trying to recall a CoreData stored entry on program start (iPhone)
I have created a program which stores data in a database created using CoreData. I want to add the ability to for the user to close the app while editing in the modal view and be presented with the same entry and view on app relaunch.
So far, I have tried storing the various data from the modal view into NSUserDefaults, including the IndexPath of the entry, and recalling the IndexPath on launch. The IndexPath doesn't seem to get stored or restored properly.
[defaults setObject:indexPath forKey:@"IndexPath"];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSIndexPath *indexPath = (NSIndexPath *)[defaults objectForKey:@"IndexPath"];
Is there a better way to do this in general?
Did you register? For example (from one of my apps):
NSNumber *defaultArmDelay = [NSNumber numberWithFloat:5.0];
NSDictionary *resourceDict = [NSDictionary dictionaryWithObject:defaultArmDelay forKey:ArmingDelayKey];
[[NSUserDefaults standardUserDefaults] registerDefaults:resourceDict];
Similar Messages
-
I get this message when trying to open Mozilla: the procedure entry point sqlite3_db_status could not be located in the dynamic link library mozsqlite3.dll.
Do a clean reinstall.
Download a fresh Firefox copy and save the file to the desktop.
* Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
* Uninstall your current Firefox version.
* Do not remove personal data when you uninstall the current version.
Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
* It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
Your bookmarks and other profile data are stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox. -
I got this iphone from a guy and everytime i tried to update the applications stored in this phone it keeps asking me the password that the guy used to use, even thou i created a new apple ID of my own and updated the account of icloud and everything in this iphone with the new apple ID, it still asks me the password of the account that the guy used to use whenever i tried to update the applications, and i cant find the guy who gave me this iphone...wt should i do???
Apps are permanently tied to the AppleID that downloaded them and cannot be transferred to another. Best thing to do is delete the apps and download those you want or need under your AppleID.
-
I'm trying to add a playlist manually to my iPhone 4. It won't let me because it's trying to delete all of the music currently on my iPhone. Is there any way to prevent this from happening in order to start manually updating it?
Are you leaving the box unchecked to Manually manage music & videos? You don't need to to add anything to the iPhone.
Simply drag the playlist to the iPhone to manually add it. -
I have a macbook pro, and am trying to update my software. I recently bought an iphone 5, and my software is to out of date to sync my phone with itunes. I currently am running 10.5.8 and I need to update to atleast 10.6.8. Just wondering if I need to purchase it from apple or if there is an easy/free way to update it.
you need to purchase it: http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard. It is only on a disk, not in download form.
-
How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear. Help please!
As with the Mail app on a Mac, the iPhone's Mail app stores all email recipients in a list of previous recipients which is separate from the address book or contacts. The email address autofill feature when addressing an message pulls from Contacts and from the list of previous recipients.
Different from the Mail app on a Mac, there is no access to the list of previous recipients with iOS on an iPhone, iPod Touch, or iPad to remove a previous recipient from the list, or to add a previous recipient to the address book or contacts that is not already entered - not at the present time anyway.
The only way to purge the list of previous recipients at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup, which will start being re-populated again with every sent message. -
I need to sinc my iphone 4 that I bought in the summer of 2011. I've never done it before and when I plug it in to the laptop it tries to sinc to my dad's old long gone iphone?
This laptop was used by him when he had a iphone a year or so ago but he has since changed to an android phone.
This is the only laptop we have and he has no use for the itunes or anything iphone related now so how do I get Itunes to forget his phone and let me connect mine so that everything on my iphone can backed up and so I may proceed with all the updates out there to bring it current....while still losing none of my stuff.
it was only plugged in for a second and now my ipone setting about page says "Danny's phone" which is what his used to be called but all my stuff is still here...???Hey joshuafromisr,
If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
http://support.apple.com/kb/HT1925
or here:
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
http://support.apple.com/kb/HT1923
Best,
David -
I have been trying to recover or reset my password, but the reset email never comes, so I can't change my password. I tried to open a new itunes account to assign my iphone 4 to, but it always defaults to the old itunes account?
Me too! I tried to reset many times the password of my daughter’s id but she never received an email with instructions. :-(
-
My iPhone is locked due to setting up a passcode after loading new version 7. I have tried to reset but keep getting turn of "find my iphone". I can't get into the phone to turn this off. What do I do now?
Try this - http://support.apple.com/kb/ht1212 - also you can sign into www.icloud.com and remote erase the phone
recovery mode restore as descibed in HT1808 might be your last resort though -
I have enlarged icons on the log in screen and can not enter my login code. I have tried enough times that I am locked out and my iphone 5 has been disabled.How do I fix this??
Hey there byambar,
Welcome to Apple Support Communities.
It sounds like you’re describing two issues, the first issue is related to the Zoom accessibility feature and the second issue is related to the device being disabled.
Take a look at the article linked below to learn more about Zoom and the other accessibility features on your iPhone 5.
Use Accessibility features in iOS - Apple Support
This article will help you resolve the issue with your iPhone being disabled.
Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support
Take care,
-Jason -
How do I transfer all photos and music from my old iphone 3gs to new iphone 4s? I have a new laptop because the old one broke and so do not have non camera roll photos or music stored anywhere apart from the iphone 3gs and cannot update io5 on the iphone 3gs without erasibng everything. i need help!!!
Syncing to a new iTunes library or computer will erase your phone. Only if you back up manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
Do this:
Disable autosync in iTunes, connect your phone to your new computer and right click on it in the device list and choose backup. iTunes will backup your device without syncing.
Transfer your purchases the same way, choosing "transfer purchases" this time.
When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPhone for the first time.
Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
About backups and what's saved:iTunes: About iOS backups
How to back up and restore:http://support.apple.com/kb/HT1414
How to download apps for free again:http://support.apple.com/kb/HT2519
Saving other data is also described here. How to back up your data and set up as a new device -
I'm trying to restore my iCloud back up on my new iPhone 5s and keep getting "could not sign in your apple Id or password is incorrect. I noticed that the Id it's showing is not my complete email address. I've reset my password 5 times. It accepts my password when I install as a new phone. How can I resolve this so I can restore my back up?
Hello jwpg,
Thank you for the details of the issue you are experiencing after restoring an iCloud backup. I recommend the following articles for an issue like this:
iCloud: "Incorrect Apple ID or Password" alert when setting up iCloud after upgrading to iOS 7
http://support.apple.com/kb/TS5207
iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
http://support.apple.com/kb/TS5223
Thank you for using Apple Support Communities.
Best,
Sheila M. -
How do I use a song stored in ipod on my iPhone 4 as a ring tone
How do I use a song stored in ipod on my iPhone 4 as a ring tone
You need to use an App like Ringtone Maker or Ringtone Wizard Pro for that.
Or, what I do is to make my own ringtones with music I have in my computer and then sync them to my iPhone following this steps:
Open iTunes.
Find the song that you want to make into a ringtone.
Listen to the song and find the part of it you want to use. The chorus may be a good place to start.
Write down the start and stop times of the clip.
Right-click the song and select "Get Info."
Click the "Options" tab.
Type in the start time of your ringtone in the text box next to "Start Time" in the minutes:seconds (i.e., 2:01) format.
Type in the end time of your ringtone in the text box next to "Stop Time." Make sure the ringtone is no more than 30 seconds long.
Click "OK."
Right-click your song again and select "Convert Selection to AAC." Wait for iTunes to convert your song. It will create a duplicate version.
Right-click the ringtone and select "Delete."
Click on the "Keep Files" button.
Find the file. It's usually in your User folder under "Music > iTunes > iTunes Music" and under the band's name. It will have an extension of m4a.
Replace the m4a extension of your ringtone with m4r. You can either double-click slowly to rename your file, or right-click and select "Get Info" on a Mac or "Rename" on a Windows PC.
Click "Use .m4r" or the PC equivalent when the system warns you that the change may affect the use of your file.
Double-click the ringtone file. ITunes will automatically add it to your ringtones folder in your iTunes Music Library.
Connect your iPhone and sync your ringtones.
Hope this was helpful -
I was trying to sync a song from my computer to my iPhone 4 using iTunes and it said you can transfer the music from your phone to your itunes if you want to sync it so I did and none of my music is on my phone or on itunes besides the song i was syncing
Hi Soccer4461,
If you need to update your iTunes software, you may find the following article helpful:
OS X: Updating OS X and Mac App Store apps
http://support.apple.com/kb/ht1338
Regards,
- Brenden -
Since updating to iOS 6, my 4th gen iPod touch, and my 3rd gen iPad has sound in and out. Sometimes it's on, and then all of a sudden, no sound. I've tried everything from restarting to fully resetting each one starting fresh, but nothing. Please help.
I have exactly the same problem. I have tried almost everything and I am nowhere near an Apple shop as I am working in Africa.
Did you manage to find a solution? Help please if possible. Regards Az
Maybe you are looking for
-
Getting error when attempting to install CS5.5 on Windows 7 64 bit
Hi, I'm receiving the errors below when attempting to install Adobe CS5.5, but only for Adobe Acrobat and some other components of the suite. I am now trying to install just Acrobat Pro through the Suite and it fails. The error log is below. Pleas
-
How do I get iWork on OSX 10.8 to sync with iCloud docs created in iOS?
There's lots of support about accessing docs already stored in iCloud from iOS, but I can't find anything beyond the basic "turn iCloud on" support for the desktop. I have an iPad (uptodate iOS and iWork apps) and lots of docs stored in iCloud. I can
-
Patch Solaris 9/10 box..VVM
I am patching Solaris 9 & 10 servers tonight and we use Veritas Volume Manager for disk mirroring. Before patching do I need to work with mirror break or anything like that ? or else can i go ahead and do the patching directly irrespective of Veritas
-
Previous button and then End of Timeline
Is there a way to have a previous button go to the previous slide, but stop at the end of the timeline instead of playing from the beginning? So say slide 1 plays for 3 seconds then stops. If you hit next you're on Slide 2. There's a Previous butt
-
Why have file sizes in Pages increased since upgrading to latest version?
Hi, I use Pages to compose a monthly newsletter for my yacht club. For that purpose I preferred it to Word because it was so easy to add, resize and position photographs. Before circulating the newsletter to club members, I convert the file to PDF fo