Jump to content

rohan

Senior Member
  • Posts

    34
  • Joined

  • Last visited

Posts posted by rohan

  1. If it doesn't work use this code instead and write it in your Preferences.mm. I used red color here for @[member='DeadGod']
    #import <Preferences/PSSwitchTableCell.h> 
    
    @interface SRSwitchTableCell : PSSwitchTableCell 
    @end
     
    @implementation SRSwitchTableCell
     
    - (id)initWithStyle:(int)fp8 reuseIdentifier:(id)fp12 specifier:(id)fp16 { 
    	self = [super initWithStyle:fp8 reuseIdentifier:fp12 specifier:fp16]; 
    	if (self) {
    		[((UISwitch *)[self control]) setOnTintColor:[UIColor redColor]]; 
    	}
    	return self;
    }
     
    @end
    
    

    not working  :wallbash:

  2. If it doesn't work use this code instead and write it in your Preferences.mm. I used red color here for @[member='DeadGod']
    #import <Preferences/PSSwitchTableCell.h> 
    
    @interface SRSwitchTableCell : PSSwitchTableCell 
    @end
     
    @implementation SRSwitchTableCell
     
    - (id)initWithStyle:(int)fp8 reuseIdentifier:(id)fp12 specifier:(id)fp16 { 
    	self = [super initWithStyle:fp8 reuseIdentifier:fp12 specifier:fp16]; 
    	if (self) {
    		[((UISwitch *)[self control]) setOnTintColor:[UIColor redColor]]; 
    	}
    	return self;
    }
     
    @end
    
    

    ok let me try 

    thnks for the support castix and deadgod

  3.  

    so... If I want it red I just add this?

    <key>alternateColors</key>
          <true/>FF0000

    prefbundle blank, not showing anything

     

    also can't open ninjakid.plist file 

     

     

    this type of error - Encountered unexpected character fon line 29 while looking for open tag

     

  4. <dict>
        <key>cell</key>
            <string>PSSwitchCell</string>
        <key>default</key>
            <false/>
        <key>defaults</key>
            <string>ninjakid</string>
        <key>key</key>
            <string>kCoins</string>
        <key>label</key>
            <string>Unlimited Coins</string>
        <key>alternateColors</key>
            <true/>
    </dict>

    Here I edited it for you. You only had to add the alternateColor key the rest was a sample to visualize it

     

    nothing happens

    still showing green colour

  5. He did DiDA :p don't be such a noob

    <dict>
        <key>cell</key>
            <string>PSSwitchCell</string>
        <key>alternateColors</key>
            <true/>
    </dict>
    

     

    <dict>

    <key>cell</key>

    <string>PSSwitchCell</string>

    <key>default</key>

    <false/>

    <key>defaults</key>

    <string>ninjakid</string>

    <key>key</key>

    <string>kCoins</string>

    <key>label</key>

    <string>Unlimited Coins</string>

    </dict>

     

     

    my bundle

    Where to put your code?

    i just want to change the colour of on/off switch

×
  • 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