ios - UIButton not showing -
In the storyboard - I have set the button as the last overview to stay above the background image. But still - I can not see the button (I think it is hidden under the image)
(The second button, mentioning go.png. First one is OK)
Edit : Apparently the TableView hides the button, though there is no idea before it in the storyboard? .storyboard snippet: This button is used for the main first
& lt; Visual key = "view" contentMode = "scaleToFill" id = "VfA-cc-yiX" & gt; & Lt; Rect key = "frame" x = "0.0" y = "0.0" width = "320" height = "519" /> & Lt; autoresizingmask key = "autoresizingmask" /> & Lt; subviews & gt; & Lt; ImageView userInteractionEnabled = "NO" contentMode = "scaleToFill" Horizontal Hogging Priority = "251" vertical hashing proxy = "251" image = "background_photo.png" id = "xWd-g0-aHG" & gt; & Lt; rect key = "frame" x = "20" y = "262" width = "280" height = "254" /> & Lt; autoresizingMask key = "autoresizingMask" widthSizable = "yes" height = "yes" /> & lt; / imageView & gt; & Lt; imageView userInteractionEnabled = "no" contentMode = "scaleToFill" image = "fridge_top_part.png" id = "SG5-CB-AKI" & gt; & Lt; Rect key = "frame" x = "20" y = "215" width = "280" height = "50" /> & Lt; AutoresizingMask key = "autoresizingmask" flexibleMXx = "yes" flexibleMaxYY = "yes" /> & Lt; / imageView & gt; & Lt; TableView clipSeviewViews = "yes" contentMode = "scaleToFill" alwaysBounceVertical = "YES" dataMode = "prototype" style = "plain" separator style = "default" linehite = "44" section header = "22" section FooterHeight = "22" id = "A6Z-L3-Daf" & gt; & Lt; rect key = "frame" x = "35" y = "267" width = "250" height = "244" /> & Lt; autoresizingMask key = "autoresizingMask" widthSizable = "yes" height = "yes" /> & lt; color key = "backgroundcolor" white = "1" alpha = "1" colorpace = "calibrated white" /> & Lt; Visible key = "tableFooterView" contentMode = "scaleToFill" id = "ATM-OT-Ivk"> & Lt; Rect key = "frame" x = "0.0" y = "0.0" width = "250" height = "330" /> & Lt; AutoresizingMask key = "autoresizingmask" flexibleMXx = "yes" flexibleMaxYY = "yes" /> & Lt; Color key = "backgroundcolor" white = "1" alpha = "1" colorspace = "custom" customroller space = "calibrated white" /> & Lt; / View & gt; & Lt; / Tableview & gt; & Lt; imageView userInteractionEnabled = "no" contentMode = "scaleToFill" image = "top_fridge.png" id = "9qW-rm-rrr" & gt; & Lt; rect key = "frame" x = "20" y = "72" width = "280" height = "134" /> & lt; AutoresizingMask key = "autoresizingmask" flexibleMXx = "yes" flexibleMaxYY = "yes" /> & Lt; / imageView & gt; & Lt; Button opaque = "no" tag = "1" contentMode = "scaleToFill" contentHorizontalAlignment = "center" contentVerticalAlignment = "center" button type = "underline roundline" lineback command = "medium transcription" id = "JP 0-Z-NGS" gt; & Lt; Rect key = "frame" x = "45" y = "109" width = "240" height = "37" /> & Lt; AutoresizingMask key = "autoresizingmask" flexibleMXx = "yes" flexibleMaxYY = "yes" /> & Lt; State key = "normal" background image = "whats_in_your_fridge.png" & gt; & Lt; Color key = "titleShadowColor" white = "0.5" alpha = "1" colorful = "calibrated white" /> & Lt; / State & gt; & Lt; Connection & gt; & Lt; Segue destination = "41Y-sX-NH8" type = "push" id = "3Xy-CF-d3a" /> & Lt; / Connection & gt; & Lt; / Button & gt; & Lt; Button opaque = "no" tag = "2" contentMode = "scaleToFill" contentHorizontalAlignment = "center" contentVerticalAlignment = "center" button type = "roundcutrack" lineBreakMode = "medium transaction" id = "MWR-LQ-ebu" & gt; & Lt; Rect key = "frame" x = "250" y = "475" width = "50" height = "41" /> & Lt; AutoresizingMask key = "autoresizingmask" flexibleMXx = "yes" flexibleMaxYY = "yes" /> & Lt; State = "normal" background image = "go page" & gt; & Lt; Color key = "titleShadowColor" white = "0.5" alpha = "1" colorful = "calibrated white" /> & Lt; / State & gt; & Lt; Connection & gt; & Lt; Segue destination = "bu-gc-427" type = "push" id = "9Ff-ak-y4O" /> & Lt; / Connection & gt; & Lt; / Button & gt; & Lt; / Subviews & gt; & Lt; Color key = "backgroundcolor" white = "1" alpha = "1" colorspace = "custom" customroller space = "calibrated white" /> & Lt; / View & gt;
possible issue
UIView < / code>, or it can be with a small size
potential solution
show the size inspector for that button , and the size and the button Also check the status of If there are any negative values, try to change them.
Comments
Post a Comment