Giter Club home page Giter Club logo

ios-cw-8's Introduction

تمرين رقم - ٨

ستقوم بعمل تطبيق يتابع الأحوال الطقس ⛅️ في مدن حول العالم

gifApp2

خطوات التمرين:

  1. افتح رابط التمرين من هنا
  2. لمجلد التمرين Fork قم بعمل
  3. Open in GitHub Desktop قم بفتح التمرين عن طريق
  4. Xcode قم بفتح المشروع بالـ قبل أن تبدأ … و الذي يتكون من City تعرف على الهيكل
struct City{
    let name : String
    let cardName: String
    let remarkablePlaceName : String
    
    func cardImage () -> UIImage
    {
        return UIImage(named: cardName)!
    }
       
    
    func remarkablePlaceImage () -> UIImage
    {
        return UIImage(named: remarkablePlaceName)!
    }
    
    
}

"ملاحظة : مصفوفة من كوائن المدن جاهزة لك "سهلناها عليكم

  1. TableView في الـ Cell و حدد الخلية Storyboard انتقل الى الـ
  2. Custom الخليةإلى Style حول ستايل
  3. قم بتصميم الخلية كما هو موضح بالصورة
Screen Shot 2020-06-15 at 9 31 31 AM
  1. Storyboardباسم customCell و اربطه بالـ UITableViewCell قم بإضافة ملف نوع
  2. بالملف الذي أنشأته سابقاً Outlets كـ Cell اربط العناصر الموجودة في

Label باسم cardLabel و اربط الـ cardImage باسم ImageView ملاحظة📌: يعني اربط الـ

  1. customCell و اجري التغيرات اللازمة على السطر التالي ليتناسب مع cellForRowAtIndex ثم إلى الدالة TableViewController اذهب إلى

  2. Cell فقم بعرض البيانات اللازمة من صورة المدينة و اسمها في الـ , Cell المربوطة بالـ outlets يمكنك الوصول إلى الـ

  3. لتنتقل إلى الواجهة الثانية بمجردالضغط على أحد الصفوف performSegue و استخدم الدالة didSelectRowAt ثم إلى الدالة TableViewController اذهب إلى

sender ملاحظة📌:لا تنسى أن تنقل هيكل المدينة التي تم اختيارها في الـ

  1. prepare لتنتقل بسلام إلى الواجهة الثانية … قم بالتغيرات المطلوية في الدالة
  • segue.destination حدد الوجهة الجديدة
  • مرر الهيكل الذي تم اختياره الى الواجهة الجديدة

اضغط هنا للدرس

آخر موعد لرفع الكود
8/7/2020

ios-cw-8's People

Contributors

safeyahshemali avatar wroodalrashidi avatar omsi96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.