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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:24:33+00:00 2026-06-01T06:24:33+00:00

While working with xcode, I saw a new line jmUIImage and i try to

  • 0

While working with xcode, I saw a new line jmUIImage and i try to execute the code in my SDK. But i got a strange Error. The error is

jmUIImage is undeclared

I thought it is a predefined function of Xcode. Is it a predefined or userdefined function?

jmUIImage *buttonImageNormal = [UIImage imageNamed:@"White Button.png"];
    UIImage *stretchableButtonImageNormal = [buttonImageNormal  stretchableImageWithLeftCapWidth:12 topCapHeight:0]

What it indicates and why i got the error ?

  • 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-01T06:24:34+00:00Added an answer on June 1, 2026 at 6:24 am

    It looks like the bug came from the book “Beginning iPhone Development”. On page 85 you can see jmUIImage.

    This is just a typo. As you can see in the code the object that is assigned to the jmUIImage instance is just an UIImage. That does not make much sense because you could never use any methods defined in the jmUIImage class on this object.

    jmUIImage *buttonImageNormal = [UIImage imageNamed:@"White Button.png"];
    

    If I would encounter such code I would just try it with UIImage.
    Another hint for a typo is that the name jmUIImage does not start with a capital letter. And classes (and only classes) should always start with a capital letter in Objective-C.
    And when you subclass you should not include the Prefix-Letters in your classname. A proper naming for a subclass of UIImage would be JMImage.

    If it smells like a typo and looks like a typo it probably is just a typo.

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

Sidebar

Related Questions

While working on jstree I came across this line of code- <!-- one of
While working on an existing project I suddenly got the following error when trying
I have opened many tabs while working on project. (new feature in Xcode 4).
While working on an Xcode project i keep getting the spinning wheel while switching
While working in Interface Builder within Xcode (4.3.2), the application froze and I had
I have been working on an application in Xcode for a while now and
While working with some sources written in C++ I found those macro: JNIEXPORT return_type
While working in ASP.NET MVC, I often find myself defining a basic ViewModel which
While working in a Java app, I recently needed to assemble a comma-delimited list
While working between a Windows MySQL server and a Debian MySQL server, I noticed

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.