Skip to content
Guest Big Announcement

Need Help With -(void)link { Error for My Patcher

Featured Replies

Solved by AnotherLurker

As for what you said about the headers, you can get the latest headers from here: https://github.com/rpetrich/iphoneheaders

 

Pm me and I can show you how to get a copy of the IOSurfaceAPI.h since it's not free or open source

DO NOT they are not updated and will screw up your substrate.h

 

iOSurface is open source. It's even on rpetrich's GitHub but you have to create the file with the content manually

  • Author

What is iOSurface for anyways?

  • Author

I figured out the cause of the error.

 

Instead of

 

-(void)link {

 

It's supposed to be

 

(void)link ; {

 

However when I go to the link, it doesn't doe anything when I tap on it. :o

I figured out the cause of the error.

 

Instead of

 

-(void)link {
It's supposed to be
(void)link ; {
However when I go to the link, it doesn't doe anything when I tap on it. :o
why not try this:
#import <Preferences/Preferences.h>

@interface TWEAKNAMEListController: PSListController {
}
@end

@implementation TWEAKNAMEListController
- (id)specifiers {
        if(_specifiers == nil) {
                _specifiers = [[self loadSpecifiersFromPlistName:@"TWEAKNAME" target:self] retain];
        }
        return _specifiers;
}
- (void)link {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"INSERTURLHERE"]];
} 
@end

// vim:ft=objc

Updated by KingRalph

  • Author

But I already had that in there? :ermm:

  • Author

So you added it to the one in the project.mm folder? :huh:

  • Author

Well done :thumbsup:

Create an account or sign in to comment

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.