inflearn logo
강의

Khóa học

Chia sẻ kiến thức

iOS9 & Swift2 Tìm hiểu phát triển ứng dụng iPhone bằng cách tạo 12 ứng dụng

51. AppLifeCycle 4

UIActivityIndicatorView 부분을 코딩하고 문제가 발생하였습니다.

137

cabbagecube4651

1 câu hỏi đã được viết

0

최강사님. 안녕하세요. 강사님 강의를 듣다가 문제가 생겨서 이렇게 질문을 드립니다. 상황은 제목과 같이 UIActivityIndicatorView 부분을 코딩하고 실행을 했을 때 콘솔부분에 아래와 같은 내용이 나오며 실행되지 않고 있습니다. 2016-07-01 16:23:05.353 MiniBrowser[20606:3090578] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key spiningActivityIndicator.' *** First throw call stack: ( 0 CoreFoundation 0x0000000101cccd85 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000103a70deb objc_exception_throw + 48 2 CoreFoundation 0x0000000101ccc9c9 -[NSException raise] + 9 3 Foundation 0x000000010209e19b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288 4 UIKit 0x0000000102687d0c -[UIViewController setValue:forKey:] + 88 5 UIKit 0x00000001028be7fb -[UIRuntimeOutletConnection connect] + 109 6 CoreFoundation 0x0000000101c06890 -[NSArray makeObjectsPerformSelector:] + 224 7 UIKit 0x00000001028bd1de -[UINib instantiateWithOwner:options:] + 1864 8 UIKit 0x000000010268e8d6 -[UIViewController _loadViewFromNibNamed:bundle:] + 381 9 UIKit 0x000000010268f202 -[UIViewController loadView] + 178 10 UIKit 0x000000010268f560 -[UIViewController loadViewIfRequired] + 138 11 UIKit 0x000000010268fcd3 -[UIViewController view] + 27 12 UIKit 0x0000000102565fb4 -[UIWindow addRootViewControllerViewIfPossible] + 61 13 UIKit 0x000000010256669d -[UIWindow _setHidden:forced:] + 282 14 UIKit 0x0000000102578180 -[UIWindow makeKeyAndVisible] + 42 15 UIKit 0x00000001024eced9 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131 16 UIKit 0x00000001024f3568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1769 17 UIKit 0x00000001024f0714 -[UIApplication workspaceDidEndTransaction:] + 188 18 FrontBoardServices 0x00000001059018c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24 19 FrontBoardServices 0x0000000105901741 -[FBSSerialQueue _performNext] + 178 20 FrontBoardServices 0x0000000105901aca -[FBSSerialQueue _performNextFromRunLoopSource] + 45 21 CoreFoundation 0x0000000101bf2301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 22 CoreFoundation 0x0000000101be822c __CFRunLoopDoSources0 + 556 23 CoreFoundation 0x0000000101be76e3 __CFRunLoopRun + 867 24 CoreFoundation 0x0000000101be70f8 CFRunLoopRunSpecific + 488 25 UIKit 0x00000001024eff21 -[UIApplication _run] + 402 26 UIKit 0x00000001024f4f09 UIApplicationMain + 171 27 MiniBrowser 0x0000000101ae4f62 main + 114 28 libdyld.dylib 0x000000010453492d start + 1 29 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException 또한 appDelegate.swift 부분이 나오며 class AppDelegate: UIResponder, UIApplicationDelegate { 이부분이 음영처리 되면서 오른쪽에 "Thread 1: signal SIGABRT" 라고 나오고 있습니다. 혹시나 하여 강사님께서 올려주신 자료를 복사하여 해봐도 똑같은 현상이 나타나고 있습니다. 어떤 것을 잘못한 것인지 판단되지 않아 질문을 올립니다. 그럼 답변기다리겠습니다. 감사합니다.

ios swift

Câu trả lời 0

swift 버전관련

0

349

1

Type 'Any' has no subscript members 에러 때문에 컴파일 안 돼요 어떻게 해야 돼요?

0

339

1

미니 웹브라우저 5강 마지막에 적어주신 urlrequest 가 안먹어요..

0

400

1

delegate 함수를 iboutlet,action 밑으로 내려 놓으면 왜 실행이 안되나요?

0

507

2

external과 local parameter를 구분지어 놓은 이유는 무엇인가요?

0

246

1

class 실습에서 class 선언시

0

280

1

mutable array 공부중에요..

0

217

1

두 가지 질문이 있습니다.

0

290

1

126강에서 다룬 메인스레드와 백그라운드 스레드에 대해서 좀 더 자세히 설명해주실 수 있나요?

0

303

1

형변환 할 때 사용하는 as!와 as?의 차이점이 무엇인가요?

0

365

2

json 파싱에서 datalist["weatherinfo"]!["local"]!!.count에서 unwrapping을 두 번하는 부분이 이해가 잘 안 됩니다.

0

265

1

인텔리전스 키가 안먹히는데요...

0

263

1

스토리보드에서 작업할 때 나중에 넣은 오브젝트를 먼저 넣은 것 뒤로 보낼 수 없나요?

0

277

1

auto-layout에 관하여

0

275

2

키보드 위에 버튼이 나오게 하는 것은 어떻게 하나요?

0

1205

3

DigitalFrame 연습하다가 "unexpectedly found nil while unwrapping an Optional value"라는 에러가 나왔습니다.

0

474

3

GoBack, GoForward로 페이지를 이동하면 urlTextField에 나오는 주소가 바뀌지 않습니다.

0

176

1

웹뷰를 끌어다 놔도 연결이 안되네요

0

193

1

시뮬레이션 해보면 아래쪽에 흰 여백이 나오는데 왜 이런 것인가요?

0

219

3

imgView.animationImages = cuteImages

0

214

1

delegate pattern을 이용해서 이벤트를 처리한다고 할 때 패턴은 무슨 말인가요?

0

196

1

0x1002e835c <+160>: brk #0x1 Thread 1: EXC_BREAKPOINT (code = 1, subcode=0x1002e835c)

0

417

1

문서에 대한 설명을 주시는데요...

0

265

3

Custom Class에서 WeatherCell을 상속받을 수가 없습니다

0

177

2