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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:10:20+00:00 2026-05-29T08:10:20+00:00

This question is related to hooking with Mobile Substrate, but as long as you

  • 0

This question is related to hooking with Mobile Substrate, but as long as you know Objective-C you probably can help.

I’ve got this class that I dumped from UIKit. Here is a piece of it:

@interface UIStatusBarItem : NSObject {
     int _type;
}
@property(nonatomic, readonly, retain) int type;
@property(nonatomic, readonly, retain) int leftOrder;
@property(nonatomic, readonly, retain) int rightOrder;
@property(nonatomic, readonly, retain) int priority;

...

@end

Naturally, if i wanted to set int type to, for example, 16, I would do:

MSHookIvar<int>(self, "_type") = 16;

From then on, [self type] will return 16. This much I know.

My problem is that I don’t know what the compiler “names” the int where the values for int leftOrder, int rightOrder, and int priority are stored. I tried:

MSHookIvar<int>(self, "leftOrder")

but that’s incorrect and crashes the phone. All I really need to know is how these variables are auto-named if you don’t specify it yourself. Thanks

Also, I hate to sound like a prick, but please don’t respond with just “don’t do this, it’s not safe.” I know it’s not, and that’s why most of my products are in Cydia and not the App Store =P

  • 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-29T08:10:22+00:00Added an answer on May 29, 2026 at 8:10 am

    The backing ivars are typically named the same as the property. Without more details, I’ve no idea why that crashed. You can check at runtime what the names are, using property_getAttributes from the Objective C runtime (having used class_copyPropertyList to get the properties from a class).

    Also, not to sound too prickish myself, even in Cydia you shouldn’t do fundamentally unsafe things. Software reliability for users is as important in a 3rd party app store as it is in the official one.

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

Sidebar

Related Questions

This question is related to this post but I don't see how I can
(This question is related - but not the same - to this one) This
(This question is related to another one , but different enough that I think
This question is related to another I ask recently, it can be found here
This question is related to this one . In a CDockablePane derived class I
This question is related to BREW framework which used in CDMA phones. But I
This question is related to this question , but not quite the same. Say
This question is related to this one , but is not a duplicate. Jb
This question is related to using Jade templates with Express.js . I know that
This question is related to one I asked the other day which I got

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.