0

i want to show a tick mark on each picture which is selected. i have no idea about that.can anyone help me.

2 Answers2

0

place a uibutton programmatically on the same location ad of selected picture .The button will be a custom button having transparent tick.png image.

Aman Aggarwal
  • 3,754
  • 1
  • 19
  • 26
  • thanks aman.But i think it is not a good way to do this .i think it is a built-in property to show tick mark when picture is selected.But thanks for your view.if you can suggest any thingelse.please – Rahul Kushwaha Apr 29 '11 at 06:19
  • if you explain more about your problem, means what you specifically wants , then i could give you more suggestion in good way – Aman Aggarwal Apr 29 '11 at 06:21
  • yah.i have a project in which user open a photo library select image from there. As he select image i have to put them in an array.but when he select image i have also show a tick mark on the selected picture .so,that it look like user select the picture. i have done all work but i am confuse about how to show a tick mark when user select the picture. – Rahul Kushwaha Apr 29 '11 at 06:31
  • Here is a librar that do the same thing as neede by you , get the code from here https://github.com/elc/ELCImagePickerController – Aman Aggarwal Apr 29 '11 at 06:46
  • thanks aman. iam studying it. it look like benificial .if any doubt is persist .i will take your help. i think you don't mind. – Rahul Kushwaha Apr 29 '11 at 06:49
  • anytime. brother, do accept the answer , i analyzed the code and it does the same thing as you want – Aman Aggarwal Apr 29 '11 at 06:53
0

Use need to use UIButton and two different set of images for more have a look to the below post,

Blog tutorial.

http://weheartgames.com/2009/06/simple-iphone-checkbox/

SO post,

Checkbox in iOS application

http://www.iphonedevsdk.com/forum/iphone-sdk-development/40592-any-way-make-uibutton-latch.html

Community
  • 1
  • 1
Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76