XCode 9 Main thread chekcer gives me such warning:
-[UIView initWithFrame:] must be used from main thread only
Why I say this is overkill?
Apple's document says here:
The frame rectangle for the view, measured in points. The origin of the frame is relative to the superview in which you plan to add it. This method uses the frame rectangle to set the
center and bounds properties accordingly.Which it means, it just created an `NSObject` and set its `bounds` property and `center` property according to the parameter you set.
- To be honest, it's completely safe when you create an object in any thread in objective-c. <`UIView` is subclass of `NSObject`>. Intrinsically creating an UIView is creating an NSObject defined in UIKit.
- Also, views which are not in view hierarchy doesn't do any UI jobs by iOS. It's there just as a NSObject.
- Even some may say that `UIView` needs to be in main thread to obtain its life cycle. But appearently it's been done in next update cycle and it's still in main thread, if the view was in view hierachy.
I don't get it why the main thread checker being so overkill.