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

  • Home
  • SEARCH
  • 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 6926229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:53:28+00:00 2026-05-27T10:53:28+00:00

I am using one label in navigation bar item.In that label two types of

  • 0

I am using one label in navigation bar item.In that label two types of font are there.Suppose
label.text = @”Topics”;

In this “T” is having font Georgia and “opics” is having the font Arial.

How I will do this?

I tried with self.navigationItem.titleView but it is taking all font same type,
I tried with two string with different font and append those two.But that also didn’t work.
Please help.

  • 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-27T10:53:28+00:00Added an answer on May 27, 2026 at 10:53 am

    There is no straightforward way..

    1) Use two UILabels, each with a different font.. Move the second one over the first based on where the first one’s text ends. You can use sizeWithFont:forWidth:lineBreakMode: to size of one text

    2)Other option, you subclass UILabel, draw text in drawRect:, Use any logic to differentiate between 2 strings in different fonts

    3) There is a third possibility..But since I never tried it, I can’t give much information..May be this question might be of help..

    EDIT : In iOS 6 UILabel, UITextView and other similar classes support NSAttributedString which can be used to have different font types/styles in single label text. This answer clearly explains it. So no need to add it here.

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

Sidebar

Related Questions

I am using a custom UITableViewCell, which has some labels. There is one label
I would like to make a UITableViewCell with one label and two accessory types:
i have two textbox using calaendarExtender and one label. My needed is if i
Hi I am using one label that displays question & radiobuttonlist for answers. when
I am using one master page.In that I am registering java scripts and checking
I have one folder synced between two computers (using one of online sync tools).
Is there a benefit to using one over the other? In Python 2, they
I am using one DataGrid with templatecolumn of Asp:Label Control. In Design Page i
Here's a quick one. In my navigation.xml I have this type of structure. <faq>
I have a div which contains two nested divs, one that specifies a height

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.