開(kāi)發(fā)iOSAPP在iOS8中textField的沒(méi)問(wèn)題,約束也正常,換到iOS7的模擬器結(jié)果報(bào)錯(cuò)報(bào)錯(cuò)信息為AutoLayoutstillrequiredafterexecuting-layoutSubviews.UITextField'simplementationof-layoutSubviewsneedstocallsuper.'界面一共有兩個(gè)textField,點(diǎn)擊任意一個(gè)都會(huì)觸發(fā)這個(gè)bug,導(dǎo)致程序崩潰.請(qǐng)問(wèn)應(yīng)該怎么解決?另附堆棧信息***Firstthrowcallstack:(0CoreFoundation0x000000010cdc5495exceptionPreprocess+1651libobjc.A.dylib0x000000010c7bb99eobjc_exception_throw+432CoreFoundation0x000000010cdc531a+[NSExceptionraise:format:arguments:]+1063Foundation0x000000010c357f19-[NSAssertionHandlerhandleFailureInMethod:object:file:lineNumber:description:]+1894UIKit0x000000010d0dfa3a-[UIView(CALayerDelegate)layoutSublayersOfLayer:]+5215QuartzCore0x000000010c1f7802-[CALayerlayoutSublayers]+1516QuartzCore0x000000010c1ec369_ZN2CA5Layer16layout_if_neededEPNS_11TransactionE+3637QuartzCore0x000000010c1ec1ea_ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE+248QuartzCore0x000000010c15ffb8_ZN2CA7Context18commit_transactionEPNS_11TransactionE+2529QuartzCore0x000000010c161030_ZN2CA11Transaction6commitEv+39410UIKit0x000000010d07e024_UIApplicationHandleEventQueue+1091411CoreFoundation0x000000010cd54d21__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION+1712CoreFoundation0x000000010cd545f2__CFRunLoopDoSources0+24213CoreFoundation0x000000010cd7046f__CFRunLoopRun+76714CoreFoundation0x000000010cd6fd83CFRunLoopRunSpecific+46715GraphicsServices0x000000010f42df04GSEventRunModal+16116UIKit0x000000010d07fe33UIApplicationMain+101017YCPai0x000000010a863affmain+11118libdyld.dylib0x000000010e37c5c9start+119???0x00000000000000010x0+1)libc++abi.dylib:terminatingwithuncaughtexceptionoftypeNSExceptionMessagefromdebugger:Terminatedduetosignal6
iOS7中 textField用autolayout發(fā)生問(wèn)題
慕標(biāo)琳琳
2019-04-19 16:12:35