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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:31:34+00:00 2026-06-14T22:31:34+00:00

I am customizing the UINavigationBar of an iOS app under iOS 6. Thus, I

  • 0

I am customizing the UINavigationBar of an iOS app under iOS 6. Thus, I am using the setTitleTextAttributes to do so.

However the specific setting

NSDictionary *attribute = @{UITextAttributeFont : [UIFont fontWithName:@"Bernard MT Condensed" size:21.0]};

causes the app to crash on a device, but not in the Simulator, with the following exception:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: 
attempt to insert nil object from objects[0]'

I found this question which seems to be of the same kind, but both my device and my simulator are set to the exact same regional settings (language, region format).

A fact worth noting is that the regional settings are set to American English in both environments, but I am showing text in a Danish regional format with danish special characters, however, it does work on the simulator, as noted.

  • 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-14T22:31:35+00:00Added an answer on June 14, 2026 at 10:31 pm

    The font you are using is a custom font which requires font files to be added to the app’s resources and an entry in the Info.plist.

    Filename case matters on real devices, but not the simulator. You need to make sure that the entry in the Info.plist matches the real filename (including case) of the actual font files.

    Side note for those that think using the Simulator is enough – This is one of the many reasons that testing on a real device is critical.

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

Sidebar

Related Questions

I'm having issues customizing a radio button for a specific form using hook_theme. Below
I'm customizing my navigation bar using: UIImage *anImage = [[UIImage imageNamed:@theImage] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0,
I am customizing an SSRS report, using an existing DataSource and DataSet. I can't
I am customizing a Process Template for TFS2008. I am using the MSF for
I'm customizing UINavigationBar and have to set a custom background image to the navigation
I have problem with customizing each page using pagecontrol and UIScrollView. I'm customizing Page
How can the UINavigationBar customizations be done? Is it using subclassing or categories? I
Im customizing a payment gateway solution using php and jquery. Before i pass the
I'm working on customizing a Rich Text Editor inside my webapp, using CLEditor. For
I'm customizing the default workflow of build process template using TFS 2010 Team Build.

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.