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 9203025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:23:15+00:00 2026-06-17T23:23:15+00:00

I create a UIProgressView inside UICollectionViewCell, I try to setFrame for UIProgressView to change

  • 0

I create a UIProgressView inside UICollectionViewCell, I try to setFrame for UIProgressView to change position in UICollectionViewCell but when do that, some cells not display progressView.
When I delete setFrame, It’s OK but default width at the top of UICollectionViewCell

What’s the problem?How to change UIProgressView size, origin? Please help!

//Cell:UICollectionViewCell 
//Cell.m
    - (id)initWithFrame:(CGRect)frame
    {
        self = [super initWithFrame:frame];
        if (self) {
           //ProgressView
           self.progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleBar];
           [self.progressView setFrame:progressViewFrame];//Some cells not display progressView
           [self.progressView addSubview:self.downloadBar];
    }
        return self;
    }
  • 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-17T23:23:17+00:00Added an answer on June 17, 2026 at 11:23 pm

    I have modified you code. Now, progress view is working properly. All cells are showing the progress view. Also, width & position of the cell can be modified, if you change the frame of self.downloadBin the below code

    - (id)initWithFrame:(CGRect)frame
    {
        self = [super initWithFrame:frame];
        if (self) {
            // Initialization code
            [self.contentView setBackgroundColor:[UIColor underPageBackgroundColor]];
    
            //cellImage
            self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 0, 57, 57)];
            [self.imageView setBackgroundColor:[UIColor clearColor]];
            [self.contentView addSubview:self.imageView];
    
            //ProgressView
            self.downloadBar = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleBar];
            [self.downloadBar setFrame:CGRectMake(0, 10, 300, 10)];
    
            [self.contentView addSubview:self.downloadBar];
            [self.downloadBar setHidden:YES];
    
            self.receivedData = [[NSMutableData alloc] init];
    
    
        }
        return self;
    }
    

    I have modified the code of cell.m from the github url which you have provided.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

CREATE TABLE `tbl_atn` ( `atn_id` int(15) NOT NULL AUTO_INCREMENT, `eng_id` int(15) DEFAULT NULL, `visit`
create table ImagenesUsuario { idImagen int primary key not null IDENTITY } This doesn't
Create Pex test to test a DLL and hardware controlled by that DLL? I
create table snippet( id int not null auto_increment, primary key(id), idlanguage int not null,
CREATE OR REPLACE TRIGGER btinsert BEFORE INSERT ON sample BEGIN IF (TO_CHAR(SYSDATE,'HH24:MI') NOT BETWEEN
CREATE TABLE Employer ( employerID INT PRIMARY KEY NOT NULL, name CHAR, industry CHAR,
//Create a new partner object $connection = new SforcePartnerClient(); //Create the SOAP connection try
CREATE TABLE `test` ( `id` INT(10) UNSIGNED NOT NULL, `c1` VARCHAR(60) NULL DEFAULT NULL,
Create a function MeanDistance(v1,v2) that returns the normalized distance between two vectors with elements
CREATE PROCEDURE p1 ( IN name_val VARCHAR(255), OUT iJobID INT ) BEGIN IF NOT

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.