在我的应用程序中,我将ALAlertBanner添加为self.view的子视图。最初它显示正常。但是,当我重定向到另一个视图并返回到相同的视图时,ALAlertBanner即使在子视图中也没有显示,并且所有帧都在正确的坐标中......!
以下是self.view子视图的日志。这是显示横幅
TheCallback ()
不显示横幅,其中包含以下日志
2015-04-22 15:21:31.948 @@@@@@@@@@View Subviews are:(
"<UIImageView: 0x7fdbf079d160; frame = (0 20; 1034 768); autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x7fdbf07194a0>>",
"<UINavigationBar: 0x7fdbf0764f10; frame = (0 20; 1024 44); opaque = NO; autoresize = W+BM; gestureRecognizers = <NSArray: 0x7fdbf0778de0>; layer = <CALayer: 0x7fdbf0764e00>>",
"<reviewSlideShow: 0x7fdbf0779540; frame = (0 64; 1024 660); clipsToBounds = YES; autoresize = RM+BM; layer = <CALayer: 0x7fdbf0779a10>>",
"<UIButton: 0x7fdbf0761b90; frame = (0 724; 1024 44); opaque = NO; autoresize = LM+RM+TM; layer = <CALayer: 0x7fdbf0761360>>",
"<UIButton: 0x7fdbf048fad0; frame = (0 349; 90 90); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x7fdbf048f3d0>>",
"<UIButton: 0x7fdbf0517240; frame = (934 349; 90 90); opaque = NO; autoresize = LM+RM+BM; layer = <CALayer: 0x7fdbf05176e0>>",
"<UIView: 0x7fdbf0779e40; frame = (105 166; 814 456); hidden = YES; autoresize = RM+BM; layer = <CALayer: 0x7fdbf077a150>>",
"<ALAlertBanner: 0x7fdbf07ab370; frame = {{0, 716}, {1024, 130}}; style = ALAlertBannerStyleSuccess; position = ALAlertBannerPositionBottom; superview = <UIView: 0x7fdbf079d050>"
)
我要添加ALAlertBanner的子视图以查看
的代码2015-04-22 15:22:47.437 @@@@@@@@@@View Subviews are:(
"<UIImageView: 0x7fdbf2a96340; frame = (0 20; 1034 768); autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x7fdbf2a96480>>",
"<UINavigationBar: 0x7fdbf29be040; frame = (0 20; 1024 44); opaque = NO; autoresize = W+BM; gestureRecognizers = <NSArray: 0x7fdbf2a146a0>; layer = <CALayer: 0x7fdbf2a1bbd0>>",
"<reviewSlideShow: 0x7fdbf2a606d0; frame = (0 64; 1024 660); clipsToBounds = YES; autoresize = RM+BM; layer = <CALayer: 0x7fdbf293f400>>",
"<UIButton: 0x7fdbf2a90f50; frame = (0 724; 1024 44); opaque = NO; autoresize = LM+RM+TM; layer = <CALayer: 0x7fdbf04919e0>>",
"<UIButton: 0x7fdbf2a90d30; frame = (0 349; 90 90); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x7fdbf04b1500>>",
"<UIButton: 0x7fdbf2a90b10; frame = (934 349; 90 90); opaque = NO; autoresize = LM+RM+BM; layer = <CALayer: 0x7fdbf29202a0>>",
"<UIView: 0x7fdbf04f66f0; frame = (105 166; 814 456); hidden = YES; autoresize = RM+BM; layer = <CALayer: 0x7fdbf04f6800>>",
"<ALAlertBanner: 0x7fdbf2aa40f0; frame = {{0, 716}, {1024, 130}}; style = ALAlertBannerStyleSuccess; position = ALAlertBannerPositionBottom; superview = <UIView: 0x7fdbf2a96210>"
)
我无法识别出错的地方..
请提出我出错的地方..
先谢谢..!
答案 0 :(得分:0)