Scoutmob/MBProgressHUD — comment on commit 8a041a719cc4de881998cdb2e7063be2ae9833b0
File: MBProgressHUD.m line 312
By NyKaroly:

The issue can be solved also in a slightly different way (and with a few lines less ;)).

Btw, the problem seems to be caused by some armv6-related compiler optimizations (since I never saw this problem on armv7).

Solution: don't assign directly indicator.bounds to indFrame in layoutSubviews.

CGRect indFrame = CGRectZero; // CGRect indFrame = indicator.bounds; <- This line caused issues on armv6 architecture / Release mode, with iOS SDK 5.0 and LLVM 3.0 compiler
indFrame.size = indicator.bounds.size;