Single-hand-Sticker icon indicating copy to clipboard operation
Single-hand-Sticker copied to clipboard

Stickers ain't shown

Open WinKhantAung opened this issue 8 years ago • 3 comments

Hello... I just used this Single-hand-Sticker in my project and I rewrote into Swift. The problem is stickers are not shown whenever application is loaded without any error. Here are my lines of code.

 let sticker1 = StickerView();
        sticker1.delegate = self;
        sticker1.frame = CGRect(x: 0, y: 0, width: 150, height: 150);
        sticker1.contentImage = UIImage(named: "sticker1.png");
        sticker1.center = self.view.center;
        sticker1.enabledBorder = true;
        sticker1.enabledControl = true;
        self.view.addSubview(sticker1);

WinKhantAung avatar Jan 11 '17 10:01 WinKhantAung

It seems nothing wrong with your code, has you ensured that the image you load isn't nil?

chenkaijie4ever avatar Jan 11 '17 12:01 chenkaijie4ever

Yeah, I'm sure about that. It isn't nil.

WinKhantAung avatar Jan 12 '17 03:01 WinKhantAung

Sry I am too busy this time.. I suggest that U can use Debug View Hierarchy to ensure that the sticker(or superView).frame is right .. Otherwise, check whether the supertView is hidden.

chenkaijie4ever avatar Jan 17 '17 02:01 chenkaijie4ever