Simplest way to change a picture in an iPhone app

Hi,
In my iPhone app, I want to make a settings pane where the user can choose a photo to display in a specific location of my app. Ideally, I want to have some default photos the user can choose from as well as take a new picture from the camera or select a photo from the photo roll. The settings are in a UITableView. What is the easiest way to change the picture of a UIImageView in the view I have built in interface builder?
Thanks!

I think you just want to set the image property of your UIImageView, e.g.:
[[imageView setImage:[UIImage imageNamed:@"Picture.jpg"]];
Of course if you already have a UIImage associated with your table you won't need the name of the file again.
Several sample apps are listed in the doc for the image property of UIImageView and the imageNamed method of UIImage:
[http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImage ViewClass/Reference/Reference.html#//appleref/doc/uid/TP40006889-CH3-SW1]
[https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImag eClass/Reference/Reference.html#//appleref/occ/clm/UIImage/imageNamed:]

Similar Messages

  • I am trying to change my apple id Country. but it says " you have a store credit balance, you must spend your balance before you can change it." i don't wanna use it to change my country. by the way i can't update any of iPhone apps. need help

    I am trying to change my apple id Country. but it says " you have a store credit balance, you must spend your balance before you can change it." i don't wanna spend it to change my country. by the way i can't update any of iPhone apps. need help

    It's strange because I can change my AppleID country without this message.
    So what to do? Just try to do this again, but on another device. You may also erase cookies and history of your browser.
    I hope it will be helpful, good luck!

  • HT5622 How do I change the picture that other iphone users see?

    How do I change the picture that other iphone users see?

    Thanks for your help! Is it chilly for a kilt there?

  • TS1741 i lost my appletv remote & can no longer connect to it with my iphone app. is there any way that i can reconnect with my iphone app without having to buy a new remote?

    i lost my appletv remote & can no longer connect to it with my iphone app. is there any way that i can reconnect with my iphone app without having to buy a new remote?

    Doubtful - why did the Remote app lose connection?

  • Any way to change this default hotkey for DVD app?

    My niece is enjoying a Daria marathon from my ripped DVDs which she  watches on my TV off my macbook which is in another room. She has a  remote keyboard app on her android phone which gives her keyboard and  mouse support, and allows her to use FN hotkeys.
    What would be the most useful for her, however, is a hotkey for 'Open Recent' menu line in the DVD File menu.
    I already know how to create hotkeys based on menu line items, but the  'Open Recent' line item has an arrow which automatically points to a  list of recent movies. So the standard procedure for creating a hotkey  doesn't work. That darn arrow ruins it.
    See attached screenshot, which has the default hotkey circled -- THIS is what I want to change.
    Is there a way of changing this hotkey? Any help would be greatly appreciated -- thanks in advance!!

    It's not possible. That's because  the Open Recent  option leads to a multiple selection which you will have to peruse with the cursor to select which one you want.  The shortcut only works on menu options that have only one function, i.e. open, close, burn, save as disk image, etc.
    OT

  • HT201335 Is there any way to change the settings on an iPhone using an iPad?i

    TThe question is as posed above.  Although if there were a way to sync the settings on the iPhone & Ipad that would work for me too.

    No only deleting Emails & photos. Cheers Brian

  • What is the simplest way to change the name of your home directory?

    I am not ashamed to say that I am not the least bit intelligent when it comes to macs. I came from PC, I'm learning, here. But I need to change the name of my Home directory and everything I've found online so far has either not worked (double clicking, or clicking twice but not quite double-clicking... um...okay), or described using the root user, which sounds sort of terrifying. Is there an easier way, or should I try to go by some detailed intructions and go for it?

    kurrykurry wrote:
    ... Is there an easier way,
    Yes.
    Apple Support Communities contributor Pondini found an astonishingly simple way to accomplish what you seek. etresoft distilled that information into the following User Tip:
    Changing user account short name
    It is a far better method than Apple's support article on the subject, which I will not bother linking here because it's outdated and cumbersome.

  • Is there a way to change the pictures that I have showing up as a screensaver on Apple TV?

    I have all pictures selected in iTunes, but it keeps showing the same ones over and over. Is there a way to refresh which ones are shown? Thanks.

    Settings > Screensaver > Photos, scroll down to computers were you should see the ones you've chosen to home share in iTunes.

  • [SOLVED] Simplest way to change datasource before deployment

    Hi all,
    I'm working with ADFBC on Jdev 10.1.3. My web app works correctly in my development environment, but now i need to put it on the production environment. That means changing the address of the datasource and deploying the app without having Jdev directly connected to the server.
    I've produced the .ear and .war then deploy them without difficulties from the OAS EM. But after make the correct changes on the Jdbc connection pool and datasource, then restart OAS (10g), i cannot connect to the DB. It seems that each one of my app module is associated to a bc4j.xfg which still contains the old connection parameters to DB. And so it seems the Jdbc ressources available in the OAS (created from the data-sources.xml) are not in use.
    My questions are how to easily modify these files (with avoiding to make it manually)?
    Should i use some toplink features to obtain an unique file containing connection parameters? Or may be i've missed something in the deployment descriptors (clearing bundle datasource?) or in the project properties?
    I've probably miss something easy because i can't found a lot of threads dealing with that.
    Thanks in advance,
    Regards,
    Tif

    Klee,
    It seems that you can choose the datasources you want to include with your deployment.
    In Jdev select your application, then go Tools> Embedded OC4J preferences. Select current workspace, then click on Data sources. Here is a check box "Auto-update data-sources.xml ...", clear it. Then drill down Data sources and delete all the things you don't need, just save with clicking on OK. Now save all. You can test with going back to current workspace data sources, after selecting one of the project included in the app. It should display only the data sources you have decided to keep.
    I didn't try to re deploy for the moment but i assume that only these data sources should be deployed.
    Hope it works,
    Regards,
    Tif

  • Is there a way to take a picture with my iPhone and NOT hvae it go into my photostream?

    I take a lot of pictures that I use for reference, and then throw away later. I would like to not have to throw them away from my photostream also. Is there a way to tell the iphone not to send to the photostream?

    If you have more than 1 mac on a local network there... you can access firewire drives attached to other Macs if they are first set up to "allow windows guests" under system preferences>SharePoints. Windows 7 conveniently sees these "other macs" and their windows-friendly drives in windows Network view. My FW drives are easy to read and write too even though the are formatted Extended (Journaled).
    I'm not sure if there is any downside to this method... such as long file paths becoming broken down the road in back up situations. I have used these Mac drives in a network setting for awhile without consequence.
    Mike

  • Is there a way to change the default colors for iPad apps?

    I noticed one of my friends iPad 2 had a different color scheme for apps and I would like to change my iPad 2's default ( which is currently grey). To elaborate, the default color for the borders and tabs in Safari are grey on my iPad, my friends are blue. Would like to change from the drab grey color to blue also but I cannot find a setting for this. All applications and Setup apps have this default color scheme on my ipad. Do I have to reset the iPad and start over with setup to achieve this? Hope not, perhaps someone can shed some light on an easy way to do this. Thank You!

    You can apply  system-wise "negative" color effect under Settings > General > Accessibility, by toggling the White and Black switch - and, in iCab Mobile (and some other, better browsers / PDF readers), its own "night mode" negative color scheme.
    Otherwise, no, you can't do anything else except for asking third party app authors to add selectable back/froeground (=text) colors to their apps.
    There is an article dedicated to this question: http://www.iphonelife.com/blog/87/do-you-find-your-idevices-screen-be-too-blueis h-or-just-too-harsh-bedtime-reading

  • Best way to change my Apple id on iPhone

    Years ago my wife and I shared my apple id.  She now has her own account and id, but we still see linking in our calendar and other places - unwanted linking, but cannot seperate it.
    I'm getting a new device in a couple of days and want to be able to link with my self only.  I'm guessing creating an all new id is going to be my solution.
    Any advice on the best way to set up a new id, and keep all of my paid for apps?

    You can share the same ID for purchasing from the iTunes and App stores without creating any issues.  But you should use separate IDs for other services such as iCloud, iMessage, FaceTime, etc.  When you get your new phone, restore it to the backup of your old one to transfer your data and settings (http://support.apple.com/kb/HT2109) and set up your shared iCloud account to sync your iCloud contacts, etc. to your phone.  Then to migrate your data to a new iCloud account, go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on the iPhone.  (If you are syncing iWork documents with iCloud, also open your iWork apps and turn off iCloud syncing and choose to keep the documents on your phone.)  After everything is turned off, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  Your wife's phone will not be effected by this.)  Next, set up a new iCloud account on your phone using a separate Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.  At this point you will have two different iCloud accounts, one for each phone, with identical data on them.
    You will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the unwanted data (such as deleting your wife's contacts from your account, and vice versa).  These changes will be reflected on each phone.
    If you are sharing the same ID for iMessage, go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in your your new ID.  If you are sharing the same ID for FaceTime, do the same thing in Settings>Facetime.

  • Change default picture viewer in camera app

    Is there anyway of changing in the camera app the default picture viewer it opens up with album still?
    The album viewer open all pictures from non camera folder which I am not cocomfortable.

    Hi Parikhjimmy,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines
    Once you have done the above the next time you try start the viewer it will supply multiple options, make sure to choose the one you want and if you want to make this the indefinite option press Always.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Any way to sync iPhoto picture folders with iPhone 3G?

    Is there any way in iPhoto to sync picture folders to the iPhone?
    For example, I want all my contacts pictures in separate albums in a sub folder called Contacts but when I sync to my iPhone only the albums show up not the sub folder called Contacts?

    No, you need to create an album. After you created an album in iPhoto and moved your picutures in there you can select the album to be synced in iTunes.

  • Is there a way to change the settings on my iPhone so I cannot receive calls from people who are not in my contacts?

    Okay so I barely use the calling/phone app (the one that comes on it) on my iPhone but most of the calls I get are from random people who I do not know who have the wrong number asking for the same people! I block them all I can but they're not always the same number there's different numbers all the time it's extremely annoying and driving me crazy, the one person left a voice mail again asking for the same person so I called them back and they denied they ever called I kept telling them I got a voicemail from that number and they kept saying no one called from that number. I literally cannot take this anymore. I remember seeing somewhere when I was setting up my phone where I can set it so people cannot call you if they're not in your contacts list. Is there a way to do that? If there is could you please let me know and how to do so? I seriously really need this please. I have an iPhone 4s that's on ios 7.1.2 if that helps any. Thanks so much.

    hi, this thread already deals with the issue:
    How can I prevent getting calls from number that are not in my address book?

Maybe you are looking for

  • Downloads for different products e.g., Crawler Web Security won't take

    I attempted to download different toolbars and products such as from Crawler's Spyware and Web Security without any luck. It goes through the usual set-up windows and a window opens up to say that the downloads have been successfully completed. I can

  • How to read data from a file from a remote area

    Hi, i have a jsp page, now i need to read & write data from the file, When i run my program then i give the file path is: "c://sample.txt" if user access this page from remote area to read & write data then what will be the file path? Is there anyone

  • IPod not detected by windows

    Hi, Windows Vista Business SP1 + iPod 5th Generation 60GB My iPod cannot be detected at all by Windows. Normally when you plug an iPod into a Windows OS it will prompt to show a new plug & play device and install drivers. However when I plug my iPod

  • Timeout in ABAP Proxy

    Hi! In my scenario messages on CRM are created by a BADI calling an ABAP proxy class on the local Integraton Engine which then forwards the messages to the XI Integration Server and vice versa. We recently had the problem that the SAPSLDAPI SM59 dest

  • Zeppelin Air Toruble with my iPhone 4

    Basically when I connect my iPhone 4 (4.3.1) to AirPlay and try to adjust the volume using the buttons on the unit or the zeppelin remote it becomes really glitchy e.g. I have hit volume up and the volume decides to go down vice versa. I had this tro