Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9236029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:11:29+00:00 2026-06-18T07:11:29+00:00

I am new to i phone programming.How to select and deselect the thumbnail images.Right

  • 0

I am new to i phone programming.How to select and deselect the thumbnail images.Right now what i did i have taken custom button using that i am adding custom image to thumbnails,it is mainly used for i can know that these thumbnail images are selected.like that,if select any thumbnail image means,custom button is attaching to each every selected thumbnail image.
Now what i want means if i again click on same image means i want remove custom button image form the selected thumbnail.again if i selected means it have attach that custom button image and if again select on same image means i have remove that custom button image form the thumbnail.Can any body tell what logic i have use here.
Here is my code

- (void)handleThumbClick:(id)sender
{


        NSLog(@"yes selected");

        FGalleryPhotoView *photoView = (FGalleryPhotoView*)[(UIButton*)sender superview];

        customBadge1 = [CustomBadge customBadgeWithString:@"1" 
                                          withStringColor:[UIColor greenColor] 
                                           withInsetColor:[UIColor redColor] 
                                           withBadgeFrame:YES 
                                      withBadgeFrameColor:[UIColor grayColor] 
                                                withScale:1.0
                                              withShining:YES];     


        b =[UIButton buttonWithType:UIButtonTypeCustom];
        b.frame = CGRectMake(0,0, 100,100);
        [b setImage:[UIImage imageNamed:@"Overlay@2x.png"] forState:UIControlStateNormal];
        [b setTitle:@"1" forState:UIControlStateNormal];
       // [b setTag:4];

        NSLog(@"Thumb click Fgallerview controller");

        [photoView addSubview:b];
        [photoView addSubview:customBadge1];

}

The above code for if click on any thumbnail means its attaching the custom button image to that thumbnail image.Now what i want means if again if click on same thumbnail i have remove that custom thumbnail image.
For example in thumbnail view i have 10 images is displaying now i want to select only 5 images if click on any 5 thumbnail means its attaching custom button image to 5 selected images.Now what i want means if want in selected 5 thumbnail images having custom button image.now if i select any selected image means i have to uncheck that selected image ,means i want to remove that custom button image form the selected thumbnail.
Can any body tell me how to do this

And one more thing i now that by using ELCimagepickercontroller we can able to select multiple images,but that only gallery images but here i am displaying from private document directory folder images..Please help meee
Thanks
Aslam

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:11:30+00:00Added an answer on June 18, 2026 at 7:11 am

    Set thumbnail image as setBackgroundImage and set initial tag=0;

    -(IBAction)handleThumbClick:(id)sender
    {
        UIButton *btn = (UIButton*)sender;
    
        if (btn.tag==0)
        {
            [btn setImage:[UIImage imageNamed:@"Default.png"] forState:UIControlStateNormal];
            btn.tag=1;
        }
        else{
            [btn setImage:nil forState:UIControlStateNormal];
            btn.tag=0;
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very new at all this c# Windows Phone programming, so this is
I'm new in programming windows phone 7 but get really tired cuz i spend
I'm pretty new to programming C# and windows phone... In my Windows Phone App
I am new to i phone programming.Once i capture picture that picture iam displaying
I'm really new in Android programming, so I have a simple question getting a
I am new to WP7 programming and I have been following this tutorial http://weblogs.asp.net/scottgu/archive/2010/03/18/building-a-windows-phone-7-twitter-application-using-silverlight.aspx
I'm new to Windows Phone programming, I was trying to make a search query
I'm new to do C# Windows Phone programming. In a nutshell, I am currently
I am pretty new to the windows phone stuff and programming for windows phone.
I am new to android programming and have found myself stuck I have been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.