Jump to content

getting error when make package %hook (void) pass-through need help


Go to solution Solved by AnotherLurker,

23 posts in this topic

Recommended Posts

Posted
%hook UBTripAddressesViewController
-(bool)_allowsAddressesViewController {
    return TRUE;
}
%end
 
%hook UBTripAddressesView
-(bool)shouldDisplayDropoff {
    return TRUE;
}
%end

%hook UBSecondaryDispatchView 
-(bool)showPickupAndDropoffAddress {
    return TRUE;
}
%end
 
%hook UBSecondaryDispatchDefaultAcceptView
-(bool)showPickupAndDropoffAddress {
    return TRUE;
}
%end
 
%hook UBTripAddressesView
-(bool)shouldDisplayPickup {
    return FALSE;
}
%end
 
%hook UBSecondaryDispatchDefaultAcceptView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(TRUE);
}
%end
 
%hook UBTripAddressesView
-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
    %orig(arg1, TRUE);
}
%end
 
%hook UBSecondaryDispatchView
-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    %orig(TRUE);
}
 
%end

 

this one is giving me the error 

 

%hook UBTripAddressesView

-(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {

%orig(arg1, TRUE);

}

%end

 

i delete it and make the package with success but i need it to complete the tweak...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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