Jump to content

[Template] How to add a Header Image to your PreferenceBundle (PFHeaderCell)


Rook

30 posts in this topic

Recommended Posts

Updated

This tutorial will be about adding a header image to your Preference Bundle or Patcher using PFHeaderCell by PixelFire.
 
It was requested by @@dzcracker here.
 
Before we begin, the tutorial will be newbie friendly but you can also follow the simple instructions on the Developers GitHub page: https://github.com/PixelFireDev/PFHeaderCell
 
@@castix also made a Template with the Header Cell ready to be used which can be downloaded from here: https://www.dropbox.com/s/odkqwl2ljbqfj9g/iosgods_pfheader.nic.tar (extract it to /theos/templates/iphone/)
 
Requirements:
- Jailbreak
- Theos installed (Tutorial here)
- iFile/Filza/iFunBox/iTools etc. for editing the files.
 
 
Instructions:
We will be using the Patcher Temaplate from here for ease instead of the default theos templates.
 
Step 1: Start a new project and select the iosgods/patcher option if you're using the template above.
 

 

iOSGods-iPad:~ root# /var/theos/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------
  [1.] iosgods/bettertweak
  [2.] iosgods/cscipatcher
  [3.] iosgods/patcher
  [4.] iosgods/patcherheader
  [5.] iosgods/tweak
  [6.] iphone/application
  [7.] iphone/library
  [8.] iphone/tool
Choose a Template (required): 3
Project Name (required): TestHeader
Package Name [com.yourcompany.testheader]: iosgods.com.testheader
Author/Maintainer Name [System Administrator]: DiDA
[iosgods/patcher] MobileSubstrate Bundle filter [com.apple.springboard]:
[iosgods/patcher] List of applications to terminate upon installation (space-separated, '-' for none) [SpringBoard]: -
Instantiating iosgods/patcher in testheader/...
Done.
iOSGods-iPad:~ root#

 


 
Step 2: Download the PFHeaderCell.mm and PFHeaderCell.h from here https://github.com/PixelFireDev/PFHeaderCell
 
Step 3: Send the PFHeaderCell.mm and PFHeaderCell.h to your /ProjectFolder/ProjectFolderPreferences/ (in my case it's /var/root/testheader/TestHeader/)
 
hJfb3vrl.png
 
Step 4: Now we need to include the 2 files inside Makefile so edit your Makefile with any text editor and PFHeaderCell like this:

ProjectName_FILES = ProjectName.mm PFHeaderCell.mm

 

 

ARCHS = armv7 arm64
include theos/makefiles/common.mk

BUNDLE_NAME = TestHeader
TestHeader_FILES = TestHeader.mm PFHeaderCell.mm
TestHeader_INSTALL_PATH = /Library/PreferenceBundles
TestHeader_FRAMEWORKS = UIKit
TestHeader_PRIVATE_FRAMEWORKS = Preferences

include $(THEOS_MAKE_PATH)/bundle.mk

internal-stage::
	$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
	$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/TestHeader.plist$(ECHO_END)

 


 
Step 5: Save the Makefile and enter the "Resources" folder so we can edit the ProjectName.plist.
 
Step 6: Edit the ProjectName.plist inside /ProjectFolder/ProjectPreferences/Resources/ and add this XML code at the top right under the <array> tag opens.
 

<dict>
    <key>cell</key>
    <string>PSStaticTextCell</string>
    <key>cellClass</key>
    <string>PFHeaderCell</string>
    <key>background</key>
    <string>#EFEFF4</string>
    <key>image</key>
    <string>/Library/PreferenceBundles/ProjectNamePreferences.bundle/header.png</string>
    <key>height</key>
    <integer>100</integer>
</dict>

 
Example:

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSStaticTextCell</string>
			<key>cellClass</key>
			<string>PFHeaderCell</string>
			<key>background</key>
			<string>#EFEFF4</string>
			<key>image</key>
			<string>/Library/PreferenceBundles/TestHeader.bundle/header.png</string>
			<key>height</key>
			<integer>100</integer>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>This text will appear under your first switch.</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>iosgods.com.testheader</string>
			<key>key</key>
			<string>kKey</string>
			<key>label</key>
			<string>Switch Text 1</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>This text will appear under your second switch.</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>iosgods.com.testheader</string>
			<key>key</key>
			<string>kGems</string>
			<key>label</key>
			<string>Switch Text 2</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSTextCell</string>
			<key>label</key>
			<string>Made by DiDA.</string>
		</dict>
		<dict>
			<key>action</key>
			<string>link</string>
			<key>cell</key>
			<string>PSButtonCell</string>
			<key>icon</key>
			<string>[email protected]</string>
			<key>label</key>
			<string>Visit iOSGods.com</string>
		</dict>
	</array>
	<key>title</key>
	<string>TestHeader</string>
</dict>
</plist>
 

 


 
Step 7: Save the plist you just modified and now we will need the Header Images.
 
Headers have to be scaled in 320x100 pixels and 640x200 (or 750x250 - mess around with the resolutions) for @2x resolution. For best results, make the header image with a transparent background so open up Photoshop and get to work. :p
 
Once you have your images, place them in the /Resources/ folder and make sure their names are header.png & [email protected] otherwise the header image won't appear.
 
Qc93EQa.png
 
Step 8: Now compile and install your package then check your iDevice settings.

iOSGods-iPad:~ root# cd /var/root/testheader
iOSGods-iPad:~/testheader root# make package install

 
 
 
Finished result:
iEQHpGXl.png
The head quality of the picture if because I resized the image with Photoshop instead of making it from scratch.
 
 
Credits:
PixelFireDev
@castix

@DiDA

  • Replies 29
  • Created
  • Last Reply
Posted

Thank you boss

How to remove backroud of image header?

I haven't messed with it a lot but you can set the hex color to #EFEFF4 which makes it the same color as the background in settings.

Posted

Or just do it from scratch using preferences headers, and some skills, and your .mm...

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Dynamite Blue +5 Cheats
      Mod APK Game Name: Dynamite Blue By Kosmo's12 Inc
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.kosmos12.dynamitebluegoogle

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Unlimited BP
      - No Skill Cooldown
      - Instant Win

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 1 reply
    • PortalPang Defense +7 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: PortalPang Defense By MOBIRIX
      Bundle ID: com.mobirix.extfdf2
      App Store Link: https://apps.apple.com/us/app/portalpang-defense/id6788294271?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Silver -> Will increase instead of decrease.
      - Enemy Move Speed Multiplier
      - Freeze Enemies
      -- No Ads
      • 1 reply
    • Color Bus Trip v1.23.0 [ +50 Cheats ] Dev Menu
      Modded/Hacked App: Color Bus Trip By Voodoo
      Bundle ID: com.Tinkerbox.ColorTrip
      App Store Link: https://apps.apple.com/us/app/color-bus-trip/id6748230755?uo=4
      🤩 Hack Features

      - Dev Menu
      • 0 replies
    • Color Bus Trip v1.23.0 [ +50 Jailed ] Dev Menu
      Modded/Hacked App: Color Bus Trip By Voodoo
      Bundle ID: com.Tinkerbox.ColorTrip
      App Store Link: https://apps.apple.com/us/app/color-bus-trip/id6748230755?uo=4

      🤩 Hack Features

      - Dev Menu
      • 0 replies
    • Elemonster Legends v1.0.4 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Elemonster Legends By Nguyen Dinh Khoa
      Bundle ID: com.ndksoft.elemon
      App Store Link: https://apps.apple.com/us/app/elemonster-legends/id6815538327?uo=4

      🤩 Hack Features

      - Currency Max
      - Never Die
      - Damage Max
      • 0 replies
    • Elemonster Legends v1.0.4 [ +3 jailed ] Currency Max
      Modded/Hacked App: Elemonster Legends By Nguyen Dinh Khoa
      Bundle ID: com.ndksoft.elemon
      App Store Link: https://apps.apple.com/us/app/elemonster-legends/id6815538327?uo=4

      🤩 Hack Features

      - Currency Max
      - Never Die
      - Damage Max
      • 0 replies
    • Tiletopia: Triple Match Game +1 Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Tiletopia: Triple Match Game By FUNJOY TECHNOLOGY LIMITED
      Bundle ID: com.starfish.mergevia.tile.match.ios
      App Store Link: https://apps.apple.com/us/app/tiletopia-triple-match-game/id6740308450?uo=4

       
       

      🤩 Hack Features

      - Unlimited Everything
      • 18 replies
    • Junk Busters Gear Roguelite v1.0.12 [ +3 Cheats ] Never Die
      Modded/Hacked App: Junk Busters : Gear Roguelite By Phase Four Inc.
      Bundle ID: com.phase4.junkbusters.ios
      App Store Link: https://apps.apple.com/us/app/junk-busters-gear-roguelite/id6770476676?uo=4

      🤩 Hack Features

      - Stage Coins Max 100
      - Never Die
      - Damage Max
      • 0 replies
    • Junk Busters Gear Roguelite v1.0.12 [ +3 Jailed ] Never Die
      Modded/Hacked App: Junk Busters : Gear Roguelite By Phase Four Inc.
      Bundle ID: com.phase4.junkbusters.ios
      App Store Link: https://apps.apple.com/us/app/junk-busters-gear-roguelite/id6770476676?uo=4

      🤩 Hack Features

      - Stage Coins Max 100
      - Never Die
      - Damage Max
      • 0 replies
    • Star Returns: Merge & Story +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Star Returns: Merge & Story By Cedar Co., Limited
      Bundle ID: com.cedargames.merge2focus
      App Store Link: https://apps.apple.com/ca/app/star-returns-merge-story/id6814700730?uo=4

       

      🤩 Hack Features

      - Unlimited Currencies
      - Freeze Currencies
      - Currency Modifier
      • 0 replies
    • Random Myth Defense +9 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Random Myth Defense By Gi Min Choi
      Bundle ID: com.randommythdefense.onwstudio
      App Store Link: https://apps.apple.com/us/app/random-myth-defense/id6809278250?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Enemy Move Speed Multiplier
      - Kill All Enemies
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      -- No Ads
      • 0 replies
    • Myth Random Defense +9 Mods [ Damage & Defence ]
      Mod APK Game Name: Myth Random Defense By ONW Studio
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.randommythdefense.onwstudio

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Enemy Move Speed Multiplier
      - Kill All Enemies
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      -- No Ads
      • 0 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