You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to thank you for developing this nice replicate of UICalloutView. I used these library 3 years ago for iGolestan app.
now I'm using again for another app. I have designed a custom content view and layout the subviews with auto layout. subviews are some UILabels which can shrink or grow based on their text length.
here is the final result I achieved:
but problem is here SMCalloutView initially needs contentView frame, but autolayouted contentView initially doesn't have any frame! until [self layoutIfNeeded] gets called! so I move'd =>
// layout now so we can immediately start animating to the final position if needed
[selfsetNeedsLayout];
[selflayoutIfNeeded];
before
// size the callout to fit the width constraint as best as possible
self.frameSize = [selfsizeThatFits:CGSizeMake(constrainedRect.size.width, self.calloutHeight)];
as you see in the below gif, initially SMCalloutView doesn't correctly show callout, display bottom arrow at top. but after that callout appears correctly.
do you have any idea how can I fix that?
The text was updated successfully, but these errors were encountered:
I want to thank you for developing this nice replicate of UICalloutView. I used these library 3 years ago for iGolestan app.
now I'm using again for another app. I have designed a custom content view and layout the subviews with auto layout. subviews are some UILabels which can shrink or grow based on their text length.
here is the final result I achieved:
but problem is here
SMCalloutView
initially needs contentView frame, but autolayouted contentView initially doesn't have any frame! until[self layoutIfNeeded]
gets called! so I move'd =>before
as you see in the below gif, initially SMCalloutView doesn't correctly show callout, display bottom arrow at top. but after that callout appears correctly.
do you have any idea how can I fix that?
The text was updated successfully, but these errors were encountered: