ios - Loaded nib but the view outlet was not set - UITableViewController -
i know question has been asked dozens of times. i've real answers on still cannot find issue :((((
i loaded nib view outlet not set
when i'm trying activate view uitableviewcontroller
.
could please me ? below xib. added connections out of desperation doesn't help.
<?xml version="1.0" encoding="utf-8" standalone="no"?> <document type="com.apple.interfacebuilder3.cocoatouch.xib" version="3.0" toolsversion="4504" systemversion="12e55" targetruntime="ios.cocoatouch" propertyaccesscontrol="none" useautolayout="yes"> <dependencies> <deployment defaultversion="1536" identifier="ios"/> <plugin identifier="com.apple.interfacebuilder.ibcocoatouchplugin" version="3734.1"/> </dependencies> <objects> <placeholder placeholderidentifier="ibfirstresponder" id="-2" customclass="uiresponder"/> <tableviewcontroller id="ure-ya-pjb" customclass="brsmylistrootviewcontroller"> <tableview key="view" opaque="no" clipssubviews="yes" clearscontextbeforedrawing="no" contentmode="scaletofill" alwaysbouncevertical="yes" style="plain" separatorstyle="default" rowheight="44" sectionheaderheight="22" sectionfooterheight="22" id="nfr-cb-kzq"> <rect key="frame" x="0.0" y="0.0" width="320" height="568"/> <autoresizingmask key="autoresizingmask" widthsizable="yes" heightsizable="yes"/> <color key="backgroundcolor" white="1" alpha="1" colorspace="calibratedwhite"/> </tableview> <simulatedstatusbarmetrics key="simulatedstatusbarmetrics"/> <nil key="simulatedtopbarmetrics"/> <nil key="simulatedbottombarmetrics"/> <simulatedorientationmetrics key="simulatedorientationmetrics"/> <simulatedscreenmetrics key="simulateddestinationmetrics" type="retina4"/> <refreshcontrol key="refreshcontrol" opaque="no" multipletouchenabled="yes" contentmode="center" enabled="no" contenthorizontalalignment="center" contentverticalalignment="center" id="jjo-vh-vbh"> <autoresizingmask key="autoresizingmask"/> </refreshcontrol> <connections> <outlet property="view" destination="nfr-cb-kzq" id="ryk-d4-fda"/> <outlet property="tableview" destination="nfr-cb-kzq" id="ryk-d4-fdb"/> </connections> </tableviewcontroller> </objects> </document>
my interface looks this
@interface brsmylistrootviewcontroller : uitableviewcontroller @end
and implementation quite big. posted on gist here: https://gist.github.com/cppexpert/6364570
the way initialize controller this:
uinavigationcontroller *vc0 = [[uinavigationcontroller alloc] initwithrootviewcontroller: [[brsmylistrootviewcontroller alloc] initwithstyle:uitableviewstyleplain]]; uinavigationcontroller *vc1 = [[uinavigationcontroller alloc] initwithrootviewcontroller: [[brscheckinviewcontroller alloc] initwithstyle:uitableviewstylegrouped]]; self.tabbarcontroller = [[uitabbarcontroller alloc] init]; [self.tabbarcontroller setviewcontrollers:@[vc0, vc1]]; [self.window setrootviewcontroller:self.tabbarcontroller]; [self.window makekeyandvisible]; // crashes here.
i checked in debugger , see view
, tableview
properties set. cannot understand wrong :(
looks xcode 5's bug.
i did clean checkout github , compared folder.
there no code changes. different files were:
- myproject.xcccheckout
- userinterfacestate.xcuserstate
recovering userinterfacestate.xcuserstate
made exception disappear.
so keep in mind, guys. problem may not in code.
Comments
Post a Comment