Jump to content

6 posts in this topic

Recommended Posts

Posted

hey! so recenlty ive ran into a problem, im trying to add UILabels, and ive been adding them with addObject:BLAH BLAH BLAH, well it works on idevices newer than the iphone 5s but everything under crashes instantly! If anyone might know what the problem is off top of their head that would be sweet :) if not i can post the code :p thanks

 

skype - @kekigotrekt

kik - @a3t

 

or just respond here :p

Posted

addObject to what instance of a class, usually its addSubview to add to a UIView or a UIViewController

I think I did viewDidLoad and i put the UIabel in an NSArray

 

so it was -(NSArray *)generateSettingsOption

 

BLAH BLAH UI LABEL

Posted

hey! so recenlty ive ran into a problem, im trying to add UILabels, and ive been adding them with addObject:BLAH BLAH BLAH, well it works on idevices newer than the iphone 5s but everything under crashes instantly! If anyone might know what the problem is off top of their head that would be sweet :) if not i can post the code :p thanks

 

skype - @kekigotrekt

kik - @a3t

 

or just respond here :p

Post the code please :)
Posted

Post the code please :)

//code//

@interface SettingsOptionBase : NSObject
@property(nonatomic, retain) NSString *optionKey;
@property(nonatomic, retain) KESettingsViewController *KEManager;
@end


@interface SettingsOptionLabel : SettingsOptionBase
- (id)initWithHeight:(double)arg1 text:(id)arg2;
@end

//code//

%subclass KESettingsViewController : SettingsPane

- (void)loadView
{
  %orig;
  UIViewController *con = self.navigationController.previousViewController;

  if ([con isKindOfClass:%c(ProfileChatInfoViewController)])
  {
    ProfileChatInfoViewController *profVC = (ProfileChatInfoViewController *)con;
    self.username = profVC.user.username;
  }
}

- (void)viewDidLoad
{
  %orig;
  self.title = @"K8 Settings";
}

%new
- (NSString *)username
{
  return objc_getAssociatedObject(self, @selector(username));
}

%new
- (void)setUsername:(NSString *)value
{
  objc_setAssociatedObject(self, @selector(username), value, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

%new
- (void)saveOption:(NSObject *)obj forKey:(NSString *)key
{
  saveOptionForKey(obj, key, self.username);
  [self reloadSettingsOptions];
}

%new
- (NSObject *)getOptionForKey:(NSString *)key
{
  return getOptionForKey(key, self.username);
}

- (id)initWithCore:(id)core
{
  self = %orig;
  self.username = kGlobalUser;
  // [self setup];
  return self;
}

%new
- (NSArray *)generateSettingsOptions
{
  NSArray *newArr =
  @[
  ];

  NSMutableArray *mutableNewArr = [NSMutableArray arrayWithArray:newArr];
  if (![self.username isEqualToString:kGlobalUser]) // not global
  {
    //code//
  }
  if ([self.username isEqualToString:kGlobalUser]) // global only
  {
    //code//
    [mutableNewArr addObject:[[[%c(SettingsOptionLabel) alloc] initWithHeight:90 text:
  @"test"] autorelease],
  }

  // [newArr addObject:[[%c(SettingsOptionSubPane) alloc] initWithTitle:@"Kik8 Options" iconImage:nil subPaneClass:%c(KESettingsViewController)]];

  return (NSArray *)mutableNewArr;
}

%new
- (void)dealloc
{
  // [self.tableView release];
  [self.username release];

  // [super dealloc];
}

%end

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Mob Empire: City Gang Wars v2.4.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Mob Empire: City Gang Wars By Atari, Interactive
      Bundle ID: com.atari.mobile.krys
      App Store Link: https://apps.apple.com/ph/app/mob-empire-city-gang-wars/id1488481638?uo=4

      🤩 Hack Features

      - Cash (Increase not decrease)
      - Gold (Increase not decrease)
      - Tokens (Increase not decrease)
      • 5 replies
    • Mob Empire: City Gang Wars v2.4.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Mob Empire: City Gang Wars By Atari, Interactive
      Bundle ID: com.atari.mobile.krys
      App Store Link: https://apps.apple.com/ph/app/mob-empire-city-gang-wars/id1488481638?uo=4

      🤩 Hack Features

      - Cash (Increase not decrease)
      - Gold (Increase not decrease)
      - Tokens (Increase not decrease)
      • 2 replies
    • Era Merge v1.0.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Era Merge By ANLOFT YAZILIM LIMITED SIRKETI
      Bundle ID: com.anloft.eramerge
      App Store Link: https://apps.apple.com/us/app/era-merge/id6783998492?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Ticket
      • 0 replies
    • Era Merge v1.0.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Era Merge By ANLOFT YAZILIM LIMITED SIRKETI
      Bundle ID: com.anloft.eramerge
      App Store Link: https://apps.apple.com/us/app/era-merge/id6783998492?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Ticket
      • 1 reply
    • Merge Cat Cafe: Decorate v1.1.50 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Merge Cat Cafe: Decorate By StandEgg Co., Ltd
      Bundle ID: com.standegg.mergecatcafe2
      App Store Link: https://apps.apple.com/us/app/merge-cat-cafe-decorate/id6670415194?uo=4

      🤩 Hack Features

      - Gems Freeze
      - Coins Freeze
      - Booster Freeze
      - Box Items Freeze
      - Energy 0 Play Unlimited
      :::: VIP ::::
      - ADS NO
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Booster
      - Unlimited Box Items
      • 0 replies
    • Merge Cat Cafe: Decorate v1.1.50 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Merge Cat Cafe: Decorate By StandEgg Co., Ltd
      Bundle ID: com.standegg.mergecatcafe2
      App Store Link: https://apps.apple.com/us/app/merge-cat-cafe-decorate/id6670415194?uo=4

      🤩 Hack Features

      - Gems Freeze
      - Coins Freeze
      - Booster Freeze
      - Box Items Freeze
      - Energy 0 Play Unlimited
      :::: VIP ::::
      - ADS NO
      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Booster
      - Unlimited Box Items
      • 0 replies
    • Crossword Master - Word Puzzle v2.1.0 [ +3 Cheats  ] Currency Max
      Modded/Hacked App: Crossword Master - Word Puzzle By Easybrain Ltd
      Bundle ID: com.easybrain.crossword.puzzles
      App Store Link: https://apps.apple.com/us/app/crossword-master-word-puzzle/id6547858927?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coins
      - Unlimited Booster
      • 0 replies
    • Crossword Master - Word Puzzle v2.1.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Crossword Master - Word Puzzle By Easybrain Ltd
      Bundle ID: com.easybrain.crossword.puzzles
      App Store Link: https://apps.apple.com/us/app/crossword-master-word-puzzle/id6547858927?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coins
      - Unlimited Booster
      • 1 reply
    • ZakuzakuSlash +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: ZakuzakuSlash By nekosuko
      Bundle ID: jp.nekosuko.zakuzakuslash
      App Store Link: https://apps.apple.com/us/app/zakuzakuslash/id6749934570?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - XP Multiplier
      - Unlimited Gold -> Will increase instead of decrease.
      • 2 replies
    • Piggy Land 3D v1.2.2 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Piggy Land 3D By PIXON PTE. LTD.
      Bundle ID: farm.piggy.animal.jam.away
      App Store Link: https://apps.apple.com/us/app/piggy-land-3d/id6762121301?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coin
      - Unlimited Booster
      - Custom Level
      • 1 reply
    • Piggy Land 3D v1.2.2 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Piggy Land 3D By PIXON PTE. LTD.
      Bundle ID: farm.piggy.animal.jam.away
      App Store Link: https://apps.apple.com/us/app/piggy-land-3d/id6762121301?uo=4

      🤩 Hack Features

      - Auto ADS No
      - Unlimited Coin
      - Unlimited Booster
      - Custom Level
      • 0 replies
    • Dwarfs Diggers: Idle Master v0.7.4 [ +4 Jailed ] Currency Freeze
      Modded/Hacked App: Dwarfs Diggers: Idle Master By BLACK BOX DIGITAL LLP
      Bundle ID: com.bbdigital.idle.dwarfs.master
      App Store Link: https://apps.apple.com/us/app/dwarfs-diggers-idle-master/id6769121279?uo=4

      🤩 Hack Features

      - Currency Freeze
      - Resources Freeze
      - Energy Freeze
      - Troop Drop Unlimited
      • 3 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines