AMPopTip icon indicating copy to clipboard operation
AMPopTip copied to clipboard

No way to show a tip in ObjC

Open Silviuvr opened this issue 3 months ago • 2 comments

In older versions I used the method showText to display the tip, now I can't seem to find the right method. I suspect it is not exposed at all.

The code below yields this error:

No visible @interface for 'PopTip' declares the selector 'showText:direction:maxWidth:inView:fromFrame:'

How it worked before:

 [self.uiTipPopView showText:NSLocalizedString(@" Text", @"Tip") direction:AMPopTipDirectionUp maxWidth:200.0 inView:self.someView fromFrame:[self.someView someFrame]];

Any help is appreciated. Thanks!

Silviuvr avatar Oct 14 '25 13:10 Silviuvr

Hi @Silviuvr The method is still there, there were just a few changes in the signature: https://github.com/andreamazz/AMPopTip/blob/main/Source/PopTip.swift#L604

so it's in instead of inView and from instead of fromFrame

andreamazz avatar Oct 14 '25 15:10 andreamazz

@andreamazz Thanks for the reply. I saw the method but I think that one and also the enum regarding orientation should be mark with @objc otherwise it can't be used inside an ObjC file.

Silviuvr avatar Oct 14 '25 15:10 Silviuvr