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.

Archived

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

  • Our picks

    • Modded/Hacked App: Galactic Warzone By Zeeppo Games Ltda
      Bundle ID: com.Zeeppo.GalacticWars
      App Store Link: https://apps.apple.com/us/app/galactic-warzone/id6746352369?uo=4


      🤩 Hack Features

      - Gems [ Use Then Get ]
      - Gold [ Use Then Get ]
      - ATMOS [ Use Then Get ]
      - Energy [ IGG Speed ]
      • 1 reply
    • Galactic Warzone v1.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Galactic Warzone By Zeeppo Games Ltda
      Bundle ID: com.Zeeppo.GalacticWars
      App Store Link: https://apps.apple.com/us/app/galactic-warzone/id6746352369?uo=4


      🤩 Hack Features

      - Gems [ Use Then Get ]
      - Gold [ Use Then Get ]
      - ATMOS [ Use Then Get ]
      - Energy [ Use IGG Speed ]
      • 1 reply
    • Furry Evo v1.2 [ +2 Cheats ] Currency NO Need
      Modded/Hacked App: Furry Evo By Ngoc Minh Le
      Bundle ID: com.run.monster.era
      App Store Link: https://apps.apple.com/us/app/furry-evo/id6743479962?uo=4

      🤩 Hack Features

      - Currency No Need
      - ATK

      • 1 reply
    • Furry Evo v1.2 [ +2 Jailed ] Currency NO Need
      Modded/Hacked App: Furry Evo By Ngoc Minh Le
      Bundle ID: com.run.monster.era
      App Store Link: https://apps.apple.com/us/app/furry-evo/id6743479962?uo=4

      🤩 Hack Features

      - Currency No Need
      - ATK

      • 1 reply
    • Masketeers : Idle Has Fallen Cheats v4.35.0 +4
      Modded/Hacked App: Masketeers : Idle Has Fallen by Appxplore (iCandy) Sdn. Bhd.
      Bundle ID: com.appxplore.masketeers
      iTunes Store Link: https://apps.apple.com/us/app/masketeers-idle-has-fallen/id1499321473?uo=4&at=1010lce4


      Hack Features:
      - Multiply Damage
      - God Mode
      - Weak Enemies
      - High Coin Gain


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/134514-masketeers-idle-has-fallen-cheats-v105-4/


      iOS Hack Download Link: https://iosgods.com/topic/134514-masketeers-idle-has-fallen-cheats-v105-4/
      • 187 replies
    • Rent Please! Landlord Sim Cheats v1.6.3 +2
      Modded/Hacked App: Rent Please! Landlord Sim By Shimmer Games Co., Ltd.
      Bundle ID: com.shimmergames.tenants.gb.en
      iTunes Store Link: https://apps.apple.com/us/app/rent-please-landlord-sim/id1645842987?uo=4


      Hack Features:
      - Infinite Currencies
      - No Ads


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/168311-rent-please-landlord-sim-v111-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/168312-rent-please-landlord-sim-cheats-v111-2/
      • 154 replies
    • Alien Invasion: RPG Idle Space Cheats v4.21.00 +2
      Modded/Hacked App: Alien Invasion: RPG Idle Space By MULTICAST GAMES LIMITED
      Bundle ID: com.multicastgames.venomSurvive
      iTunes Store Link: https://apps.apple.com/us/app/alien-invasion-rpg-idle-space/id6443697602?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/167591-alien-invasion-rpg-idle-space-v204-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/167589-alien-invasion-rpg-idle-space-cheats-v204-1/
      • 419 replies
    • Mr Autofire Cheats v4.1.1 +3 [ God Mode & More ]
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode 
      - One Hit Kill
      - Free Store

       

      Non-Jailbroken Hack: https://iosgods.com/topic/134805-mr-autofire-v380-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/134788-mr-autofire-cheats-v380-3-god-mode-more/
      • 636 replies
    • Sushi Bar Idle Cheats v2.8.9 +2
      Modded/Hacked App: Sushi Bar Idle by GREEN PANDA
      Bundle ID: com.gangame.sushibar
      iTunes Store Link: https://itunes.apple.com/us/app/sushi-bar-idle/id1438089337?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Coins
      - No Ads


      Hack Download Link: https://iosgods.com/topic/87577-arm64-sushi-bar-idle-cheats-v115-2/
      • 96 replies
    • PunBall Cheats v5.7.1 +2
      Modded/Hacked App: PunBall By HABBY PTE. LTD.
      Bundle ID: com.habby.punball
      iTunes Store Link: https://apps.apple.com/us/app/punball/id1585781366?uo=4


      Hack Features:
      - Dumb Enemies
      - One Hit Kill


      iOS Hack Download Link: https://iosgods.com/topic/151406-punball-cheats-v100-2/
      • 671 replies
    • Merge HomeTown: Merge Games v15 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Merge HomeTown: Merge Games By AppGuruz
      Bundle ID: com.gt.hometown.mergegame
      App Store Link: https://apps.apple.com/us/app/merge-hometown-merge-games/id6450775072?uo=4


      Hack Feature

      - Cash

      - Gold

      - Keys

      - Energy

      - ADS Ticket
      • 1 reply
    • World Chef Cheats v3.1.0 +4
      Modded/Hacked App: World Chef By Socialpoint
      Bundle ID: worldchef
      iTunes Store Link: https://apps.apple.com/us/app/world-chef/id1010677881?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Instant Cooking
      - Instant Eating
      - Free Missing Ingredients/Food Cost
      - Free Storage Upgrade Cost

       

      Non-Jailbroken Hack: https://iosgods.com/topic/163932-world-chef-v307-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/163904-world-chef-cheats-v307-4/
      • 62 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