Now we're going to focus on Switches for
a minute and
see what we can learn by revisiting
Apple's documentation on UI controls.
When we use buttons,
we configure our target actions to
work with the event touch up inside.
What's the name of the event
that corresponds with the switch
being thrown?
How do we know if the switch is on or
off?
Find the class reference document for
UI switch and
then check the correct options.
سنُركز الآن على المبدلات في
دقيقة
وسنتعرف على ما يمكننا تعلمه من خلال وثائق
.Apple الخاصة بعناصر التحكم في واجهة المستخدم
،وعندما نستخدم الأزرار
نقوم بتكوين إجراءات الهدف
.للعمل مع لمس الحدث في الداخل
ما اسم الحدث
الذي يطابق المبدل
الذي يتم طرحه؟
كيف نعرف أن المبدل قيد التشغيل أو
الإيقاف؟
ابحثوا عن مستند مرجع الفئة الخاص بمبدل
واجهة المستخدم ثم حددوا
.الخيارات الصحيحة
Agora, nós vamos nos concentrar nos switches por
um minuto e
ver o que podemos aprender revisitando
a documentação da Apple sobre controles de interface do usuário.
Quando usamos botões,
nós configuramos nossas ações alvo para
funcionarem com o evento touch up inside.
Qual é o nome do evento
que corresponde ao switch
sendo lançado?
Como sabemos se o switch está ativado ou
desativado?
Localize o documento de referência de classe para
o switch de IU e, em
seguida, marque as opções corretas.