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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:46:45+00:00 2026-05-27T12:46:45+00:00

Actually I am converting an iPhone app to iPad. For that I need to

  • 0

Actually I am converting an iPhone app to iPad.

For that I need to resize the “FONTS” of the labels.

There are many “title” called labels.

So, What I am doing now taking outlets of every label and setting the size of a font when the device is iPad.

There are too many labels so,
1) is there any way to set multiple outlets. to single instance so if I change one instance reflect to all?

2) is there any other method to change the size.

  • This is how my code looks like.

    if([self isPad])
        {
            [btnReset.titleLabel setFont:BUTTON_FONT_iPAD_BOLD];
            [btnViewReport.titleLabel setFont:BUTTON_FONT_iPAD_BOLD];
            scrollView.contentSize = CGSizeMake(768,1200);
    //         scrollEmpView.contentSize = CGSizeMake(768, 1690);
    //        
    //        //Report View Page Frame Set
    //        //Values Before ADDED...
    //        [lblPayeCalculation setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblTaxcode setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblDeduct setFont:LABEL_FONT_iPAD_REPORT];
    //        
    //        [lblPayroll setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblChild setFont:LABEL_FONT_iPAD_REPORT];
    //        
    //        [lblDate setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblFrequency setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblSalary setFont:LABEL_FONT_iPAD_REPORT];
    //        
    //        [lblGross setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblEarnerLevy setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblChildDeduct setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblStudent setFont:LABEL_FONT_iPAD_REPORT];
    //        
    //        [lblKiwiDeduct setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblTaxCredit setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblNetPayment setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblPayrollDonationAmt setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblNetPaymentLessPayroll setFont:LABEL_FONT_iPAD_REPORT];
    //        
    //        [lblPayeCalculation setFont:LABEL_FONT_iPAD_REPORT];
    //        
    //        
    //        
    //        //Values Added...to only set it
    //        
    //        [lblQPaye setFont:LABEL_FONT_iPAD];
    //        [lblQPaye2 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQP1 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQP2 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQP3 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQP4 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQPay setFont:LABEL_FONT_iPAD];
    //        
    //        [lblQPay1 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQPay2 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQPay3 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQCalculation setFont:LABEL_FONT_iPAD];
    //        [lblQC1 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC2 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC2Sign setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC3 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC3Sign setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC4 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQCSign4 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC5 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC5Sign setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC6 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC6Sign setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC7 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQCSign setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC8 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC8Sign setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC9 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQC9Sign setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQTitleKiwiSaver setFont:LABEL_FONT_iPAD];
    //        
    //        [lblQK1 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblKiwiContributePercent setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQK1 setFrame:YOFFSET_FRAME_iPAD(lblQK1, 10, -)];
    //        
    //        [lblQK2 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblKiwiContributeValue setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblKiwiContributeValue setFrame:YOFFSET_FRAME_iPAD(lblKiwiContributeValue, 23, -)];
    //        [lblQK2 setFrame:YOFFSET_FRAME_iPAD(lblQK2, 29, -)];
    //        
    //        [lblQK3 setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblKiwiCompulsoryValue setFont:LABEL_FONT_iPAD_REPORT];
    //        [lblQK3 setFrame:YOFFSET_FRAME_iPAD(lblQK3, 45, -)];
    //        [lblKiwiCompulsoryValue setFrame:YOFFSET_FRAME_iPAD(lblKiwiCompulsoryValue, 39, -)];
    //        [imgvLast setFrame:YOFFSET_FRAME_iPAD(imgvLast, 32, -)];
    //        [lblQKLast setFont:LABEL_FONT_iPAD];
    

    }

  • 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-05-27T12:46:46+00:00Added an answer on May 27, 2026 at 12:46 pm

    If you are changing the fonts of all the labels within the view why not give this a try

    if([self isPad])
        {
            [btnReset.titleLabel setFont:BUTTON_FONT_iPAD_BOLD];
            [btnViewReport.titleLabel setFont:BUTTON_FONT_iPAD_BOLD];
            scrollView.contentSize = CGSizeMake(768,1200);
            for(UILabel *label in [self.view subviews]) {
               if([label isKindOfClass:[UILabel class]]) 
               label.font = LABEL_FONT_iPAD_REPORT;
            }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm converting an old app that records folder sizes on a daily basis. The
This is actually a problem that I've already solved, but I suspect that there
I have an iPhone app that I run on the simulator. XCode ver 3.2.6/4.3.
I'm currently creating an iPhone app and we need some testing with about 20~30
I am converting a makefile project into a Visual Studio VC++ project. It's actually
What is the process of converting win32 application (a small popup window actually) to
I want to remove a line connecting two labels. Actually, I want to remove
Actually my question is all in the title. Anyway: I have a class and
My Case: I'm working on a system that will need to create various X12
I've written an iPhone-App and encountered a problem concerning typecasting between float and int.

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.