Jump to content

How to add an image to a tweak ?


Vegito

1 post in this topic

Recommended Posts

Posted

Hello,

I am trying to add an image on my custom alert but the tweak crashes , i just pasted .png file in my tweak directory and set image in tweak.xm as  :

paintImg.image=[UIImage imageNamed:@"paint.png"];

It seems like it is unable to find the image, do i need to give path of the directory where the image is stored? 

 

Update: The issue is not related to image anymore, i created a method within the class i was hooking , probably i am not allowed to create methods in it. I created an empty method and called it to the method i wanted to override, it still crashed. I hope someone could tell a solution to create & call the method i want. 

Your time and help is appreciated.

Archived

This topic is now archived and is closed to further 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