DejalActivityView is really useful. It looks like we are using a very old version. I.E. pre github. I was going through the code. I wanted to fix a couple of deprecated font related warnings.
seem like you use a style of code I am not familiar with.
I noticed around line 300 what looks like a prototype and a chunk of code. I wonder if this dead code? I set a break point. It never seems to execute
- (void)layoutSubviews;
{
self.frame = [self enclosingFrame];
I noticed something similar around line 569. a prototype and chunk of code. I know this chunk executes.
- (void)layoutSubviews;
{
// If we're animating a transform, don't lay out now, as can't use the frame property when transforming:
if (!CGAffineTransformIsIdentity(self.borderView.transform))
return;
self.frame = [self enclosingFrame];
CGSize maxSize = CGSizeMake(260, 400);
// https://stackoverflow.com/questions/19145078/ios-7-sizewithattributes-replacement-for-sizewithfontconstrainedtosize
// CGSize textSize = [self.activityLabel.text sizeWithFont:
// [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]
// constrainedToSize:maxSize
// lineBreakMode:self.activityLabel.lineBreakMode];
//SCILog(@"deprecated textSiz: h:%f w:%f", textSize.height, textSize.width)
NSDictionary *attributes = @{NSFontAttributeName: [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]};
CGRect rect = [self.activityLabel.text boundingRectWithSize:maxSize
options:NSStringDrawingUsesLineFragmentOrigin
attributes:attributes
context:nil];
CGSize textSize = rect.size;
//SCILog(@"deprecated textSiz: h:%f w:%f", textSize.height, textSize.width)