# iOS Unit Testing by Example: loadViewIfNeeded() call (page 90)

**URL:** <https://forum.devtalk.com/t/ios-unit-testing-by-example-loadviewifneeded-call-page-90/27457>\
**Category:** PragProg Customers\
**Tags:** book-ios-unit-testing-by-example, errata\
**Created:** [1 November 2021 15:43 UTC](https://forum.devtalk.com/t/ios-unit-testing-by-example-loadviewifneeded-call-page-90/27457 "2021-11-01T15:43:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jav-solo](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jav-solo/32/3551_2.png) [@jav-solo](https://forum.devtalk.com/u/jav-solo)\
**Post date:** [1 November 2021 15:43 UTC](https://forum.devtalk.com/t/ios-unit-testing-by-example-loadviewifneeded-call-page-90/27457/1 "2021-11-01T15:43:31Z")

</div>

Title: iOS Unit Testing by Example: loadViewIfNeeded() call (page 90)  
I recently purchased the printed version of this text and on page 90, there is a call to `loadViewIfNeeded()` before the call to `makeAnalytics` and then another one right after. I suspect the first call is a mistake.

---

<div class="post-metadata">

**Author:** ![jonreid](https://forum.devtalk.com/user_avatar/forum.devtalk.com/jonreid/32/910_2.png) [@jonreid](https://forum.devtalk.com/u/jonreid)\
**Post date:** [3 November 2021 15:14 UTC](https://forum.devtalk.com/t/ios-unit-testing-by-example-loadviewifneeded-call-page-90/27457/2 "2021-11-03T15:14:58Z")

</div>

Quite right. Thank you!
