objective c - UITableView header view and searchBar dismissal issue. Constraint issue? -


i have uisearchbardisplaycontroller, text field, , button in header view of tableview. i've tried putting...

self.searchbar.translatesautoresizingmaskintoconstraints = yes; 

in viewdidload. i've tried putting constraints, crashes when dismiss displaycontroller, either hitting cancel button or click on background. error...

2014-02-05 22:49:16.774 xxxx[3818:60b] *** assertion failure in -[uitableview layoutsublayersoflayer:], /sourcecache/uikit/uikit-2903.23/uiview.m:8540 2014-02-05 22:49:16.777 xxxx[3818:60b] *** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'auto layout still required after executing -layoutsubviews. uitableview's implementation of -layoutsubviews needs call super.' *** first throw call stack: (0x2fd76e83 0x3a0d36c7 0x2fd76d55 0x3071f0af 0x324fb413 0x32181943 0x3217d167 0x32510231 0x32732d2f 0x327326b7 0x32532ab7 0x325329cf 0x32188413 0x3a5b80af 0x3a5ba9a9 0x2fd415b1 0x2fd3fe7d 0x2fcaa471 0x2fcaa253 0x349e42eb 0x3255f845 0x3b0bd 0x3a5ccab7) libc++abi.dylib: terminating uncaught exception of type nsexception 


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -