Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Exception handling in Objective-C

  • techytube
  • 2012-10-01
  • 1468
Exception handling in Objective-C
XcodeiOSObjective-CCommand Line ToolmethodsmessagesInstance MethodsClass MethodsExceptionErrorException handlingtrycatchfinally
  • ok logo

Скачать Exception handling in Objective-C бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Exception handling in Objective-C или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Exception handling in Objective-C бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Exception handling in Objective-C

Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
http://www.techytube.com/author/pavel

When we programming in Objective-C, there are situations when some unexpected things may appear. For example, an object might get a type when it should be of a totally different type. And when we try to call some methods on that object, we get our program crashed, with an "unrecognised selector send to that specific object" exception.

To deal around that, we should use the @try {} @catch {} @finally {} block. All the modern object oriented programming language have such syntax, and there are many situations where we can make use of it.

Basically, inside the @try section, we insert our code that generated the exception(s). Than if one appear, we have to handle that in the @catch block. @catch has a NSException object as a parameter, and we can use it to check different things (what exactly is the type of exception, where it came from etc.). @finally is executed wether am exception was raised or not. As a more practical example, say we are working with a Database, and we have a connection opened with the DB, and after we successfully executed some queries to the DB, when trying to manipulate the result - our program crashed. We can use the @try {} @catch {} @finally {} block in this case. In @try section we'll do all the heavy work. If an @catch section we log something to the Console, or give some alert to the user in case of a Graphical User Interface. But the connection is still opened :(. And the solution is to fix that in the finally block :). If it's opened, close it, and also release the other allocated resources.

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]