Skip to content
Guest Big Announcement

How to add an image to a tweak ?

Featured Replies

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.

Updated by Vegito

Archived

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.