What is Any and AnyObject in swift iOS Hindi Tutorial

Поділитися
Вставка
  • Опубліковано 2 сер 2024
  • Any and AnyObject are used for bridging between objective c and swift. What is Any and AnyObject in swift seems to be a favorite interview question.
    In this video on Any and AnyObject I am sharing the details behind the use of these two and some extra information that can help swift beginners or experienced developers to answer them with ease and confidence.
    The video covers the following chapters
    0:00 Introduction:
    1:04 The idea behind Any and AnyObject
    3:04 Demo of Any and AnyObject
    6:45 class keyword vs AnyObject protocol
    7:38 Problems with Any and AnyObject
    10:11 When to use Any and AnyObject
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
    🔗Click on the link to subscribe: ua-cam.com/users/codecat?sub...
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    🎶 Royalty-free Music: www.bensound.com
    ############################################
    Connect with me on social media
    📧: codecat15@gmail.com
    🐦: / codecat15
    Facebook: / code.cat.792
    Github: github.com/codecat15
    Instagram: / codecat15
    ###########################################
    #AnyAndAnyObject #swiftHindiTutorial #WhatIsAnyInSwift

КОМЕНТАРІ • 115

  • @abhishekmahuri9645
    @abhishekmahuri9645 3 роки тому +11

    Ravi you are doing a great job for the programmers. I know it takes lot of hard work , research and planning for every single videos of yours. As you cant afford to make mistakes here. Your explanation is so to the point and thats what makes me watch every single videos. Keep up the good work man. #respect.
    I have asked all my connections to subscribe to your channel. I would request every one visiting here to subscribe to this channel. This is the least we can do.
    Suggestion: Upload your videos link in LinkedIn as well. Kindly share your LinkedIn id too.

    • @CodeCat15
      @CodeCat15  3 роки тому +2

      Hey Abhishek, thank you so much for your kind words, I am thankful to you.
      As of now I don’t upload my videos on LinkedIn just keeping UA-cam as my source, but i do encourage subscribers to post the link of the video they liked on their LinkedIn account or on any social media platform or whatsapp group if they have of iOS.
      The more number of people subscribe, the more it motivates me to make good content which is freely available anytime at your fingertips.
      Once again thank you for your kind words Abhishek and welcome to the channel.

    • @vyankateshshivnikar7932
      @vyankateshshivnikar7932 2 роки тому

      well said..

  • @CodeCat15
    @CodeCat15  3 роки тому +7

    what is any and AnyObject in swift, an interview question which is asked mostly to all freshers and experienced iOS developers. In this video, we shall explore all the details on Any and AnyObject so that we can answer such interview questions. If I have missed covering any point then I would request you to please highlight that out and do ask your questions via comments or via email. And please do subscribe to the channel and share it with your iOS group

  • @vyankateshshivnikar7932
    @vyankateshshivnikar7932 2 роки тому +1

    Awesome....Daily watching one video of yours and learning something new!! Thanks a lot!!

  • @poojaraghuwanshi1914
    @poojaraghuwanshi1914 Рік тому +1

    Really nice explanation about Any and Anyobject

    • @CodeCat15
      @CodeCat15  Рік тому

      Glad it was helpful Pooja 👍

  • @prachitpatil7020
    @prachitpatil7020 2 роки тому +1

    Good work Ravi, I learned new things from each video that u have uploaded .

    • @CodeCat15
      @CodeCat15  2 роки тому

      Glad to hear that, feel free to ask questions and do share the channel with your iOS group

  • @meetbrahmbhatt480
    @meetbrahmbhatt480 7 місяців тому +1

    Thank you for the explanation. Despite working on it for couple of years I was unable to explain this difference in detail.

  • @rachitsharma8829
    @rachitsharma8829 Рік тому

    Great research! and as always well explained!👍

  • @azharuddinkhan1865
    @azharuddinkhan1865 Рік тому +1

    Brother, your every video is exceptionally good
    Thank you for making such quality content

    • @CodeCat15
      @CodeCat15  Рік тому

      welcome to the channel, I am glad that this video was helpful please feel free to ask questions on the topic and do share the channel with your ios group.

  • @DivineYogaWithPriyanka
    @DivineYogaWithPriyanka 10 місяців тому

    I hit the like button at start of your videos itself as I already know by the end this video I will learn something in depth.

  • @ushadesai6306
    @ushadesai6306 2 роки тому +1

    Thank you, you explain concepts so well.

    • @CodeCat15
      @CodeCat15  2 роки тому

      Thank you for your kind words :) do share the channel with your iOS group and on linkedin as well

  • @IleshPanchalOnly
    @IleshPanchalOnly 3 роки тому

    Great 👍🏼

  • @deepalpatel7956
    @deepalpatel7956 3 роки тому +1

    Great explanation. Keep making the videos

  • @shashwatsinghchauhan4527
    @shashwatsinghchauhan4527 2 роки тому

    thanks for such an amazing content ❣️....

  • @akshayhastekar103
    @akshayhastekar103 3 роки тому +1

    Glad to see another video and literally this is tremendous video... very helpful. Thank you so much 😊

    • @CodeCat15
      @CodeCat15  3 роки тому

      I am glad you liked it Akshay :) let me know if you have any questions on this topic, will be happy to answer them for you and do share this with your iOS group

  • @sakshigothi2080
    @sakshigothi2080 3 місяці тому +1

    best explanation for everything

    • @CodeCat15
      @CodeCat15  2 місяці тому

      Thank you, glad it was helpful

  • @DhavalHNena
    @DhavalHNena 2 роки тому +1

    Great explanation as usual 👍

    • @CodeCat15
      @CodeCat15  2 роки тому

      Thank you Dhaval, plz feel free to ask questions and do share the video with your iOS group 🙏

  • @shahbaze63
    @shahbaze63 3 роки тому +1

    at the top level.. Thanks Sir...

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      No problem Shahbaz, please feel free to ask questions on this topic

  • @natureloverspakistan
    @natureloverspakistan 3 роки тому +1

    going deeper .. very detail research .. perfect

    • @CodeCat15
      @CodeCat15  3 роки тому

      Thank you am glad this was helpful. 😊

  • @ushadesai6306
    @ushadesai6306 2 роки тому +1

    Excellent video. Thank you.

  • @atmaramsawant6127
    @atmaramsawant6127 3 роки тому +1

    Thank you Ravi !!! for diving deep and making things easier for us. Respect!!

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      I am glad these videos are helpful, feel free to ask questions and do share the channel with your iOS group 👍

  • @AboutTheVoice
    @AboutTheVoice 2 роки тому

    Very well sir

  • @rajeshchouhan7544
    @rajeshchouhan7544 5 місяців тому +1

    Maza aa gya 😅❤❤
    Thank you Ravi

    • @CodeCat15
      @CodeCat15  Місяць тому

      Thank you Rajesh, please feel free to ask questions and do share the channel with your iOS group.

  • @buba7456
    @buba7456 2 роки тому

    Thank u

  • @brijeshbhardwaj4907
    @brijeshbhardwaj4907 3 роки тому +1

    Thank you so much for another excellent video.

    • @CodeCat15
      @CodeCat15  3 роки тому

      Thank you for your kind words, please feel free to ask questions on this topic i will be happy to answer them, do share this video with your ios group

  • @KuldeepSingh-ss1sd
    @KuldeepSingh-ss1sd 3 роки тому +1

    Awesome 👌

  • @shubhamgupta8093
    @shubhamgupta8093 3 роки тому +1

    Superb explanation... absolutely cleared all the doubts. Thanks!!

    • @CodeCat15
      @CodeCat15  3 роки тому

      Am glad this was helpful

  • @vamsi3877
    @vamsi3877 3 роки тому +1

    I already know this concept but now i got full clarity. Keep making more n more videos 🙏🙏

    • @CodeCat15
      @CodeCat15  3 роки тому

      Awesome man am glad this was helpful, please do feel free to ask questions on this and do share this with your iOS group 😊

  • @ItsmeYuvi2020
    @ItsmeYuvi2020 3 роки тому

    Really Thanks for your videos. Its helps me a-lot to crack the interviews. Please keep posting more videos for us. One suggestion is please make video on custom framework and version controls (GitHub)

  • @nainasoni7831
    @nainasoni7831 3 роки тому +1

    Great research! and as always well explained! (y)

  • @surajrautela1262
    @surajrautela1262 3 роки тому +1

    thanks a lot. keep making such videos

    • @CodeCat15
      @CodeCat15  3 роки тому

      Hey Suraj, am glad this video was helpful, please feel free to ask questions and do share the video with your iOS group on WhatsApp or Facebook

  • @rakesh58652
    @rakesh58652 3 роки тому +1

    explanation is super

    • @CodeCat15
      @CodeCat15  3 роки тому

      Thanks Rakesh, plz do feel free to ask questions on this topic and do share the video with your iOS group

  • @AnshikaPathak-mn3ej
    @AnshikaPathak-mn3ej 11 місяців тому

    wow this is really great explanation . keep making more videos the way u make videos that is really amazing . waiting more about ur videos

  • @abhishekmahajan3432
    @abhishekmahajan3432 3 роки тому +1

    Great video

    • @CodeCat15
      @CodeCat15  3 роки тому

      Thank you Abhishek, please feel free to ask questions on this topic and do share this video with your iOS group on Facebook or WhatsApp

  • @RaniSingh-og9sy
    @RaniSingh-og9sy 3 роки тому +1

    Thank you so much for creating such wonderful videos. You way of explanation is awesome. Every single topic can be understood very easily by watching your videos. Keep up the good work.

    • @CodeCat15
      @CodeCat15  3 роки тому

      Welcome to the channel Rani, and thank you for your bright words. Plz do feel free to ask any questions on the topic and do share the channel with your iOS group

  • @bhojakparth1788
    @bhojakparth1788 3 роки тому +1

    You are just amazing. Each and every video you posted is very informative.and It gives clear understanding of the topic.🙏

    • @CodeCat15
      @CodeCat15  3 роки тому

      Glad to hear that the content are helpful. Please feel free to ask questions and do share the channel with your iOS group

  • @pratikgupta7373
    @pratikgupta7373 3 роки тому +3

    belated Happy teacher's day.
    thanks for explaining confusing topics in the simplest way

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Thanks you Pratik, I am thankful for your kind words. Please feel free to ask questions on this topic i will be happy to answer them and do share this video with your ios group

  • @dipikasahu3298
    @dipikasahu3298 3 роки тому +1

    👍

  • @fitdevelopertv5148
    @fitdevelopertv5148 3 роки тому +1

    Keeping Going Ravi..
    looking forward to learn a lot from you. :)

    • @CodeCat15
      @CodeCat15  3 роки тому

      I am also a learner like you Rishabh :) Do check out the video till the end and please do feel free to ask questions on this topic and do share this video with your iOS group :)

    • @fitdevelopertv5148
      @fitdevelopertv5148 3 роки тому +1

      @@CodeCat15 Sure :)

  • @JunaidKhan-ny8tu
    @JunaidKhan-ny8tu 3 роки тому +1

    What an amazing teacher your are 👍👍👍

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Thank you Junaid for your bright words, please feel free to ask questions on this topic will be happy to answer them.

    • @JunaidKhan-ny8tu
      @JunaidKhan-ny8tu 3 роки тому +1

      @@CodeCat15 Its very very clear to me :-)

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Awesome I am glad this was helpful Junaid 😊

  • @mahtabhasan8513
    @mahtabhasan8513 3 роки тому +1

    Hi Dear
    I have gone many of your videos about swift. Your presentation is fantastic specially explaining a theoretical
    concept and then coding, In my opinion theory is must to know before jumpimg for swift app or any language.

    • @CodeCat15
      @CodeCat15  3 роки тому

      Hello Mahtab, welcome to the channel. You are correct theory + practical both are needed for a developer to know the concept in details. Do share this channel with your iOS group and feel free to ask questions on this topic

  • @Manojrohtela
    @Manojrohtela 2 роки тому +1

    Your videos are awesome. I am also a iOS Developer i learned so many things by your videos. I have a request for you , can you please create a playlist of all swift videos by serial

    • @CodeCat15
      @CodeCat15  2 роки тому

      If you visit the playlist section there you will find all the video collections by different topics so I recommend checking it out once and thank you for your kind words

  • @salmansiddiqui9522
    @salmansiddiqui9522 3 роки тому

    Nice Explanation. Just wanted to know as AnyObject is Protocol what is type of Any ?

  • @AmitGupta-ef2nm
    @AmitGupta-ef2nm 3 роки тому +1

    I knew what it was. But I did not know when and how to use them.so thanks for making this video.

    • @CodeCat15
      @CodeCat15  3 роки тому

      I am glad now you know 😊, let me know if you have any questions on this topic and do share this video with anyone who can benefit from it.

  • @rohitnishad5261
    @rohitnishad5261 2 роки тому +1

    great video . i have subscribe your channel please make more video on other topic you are really great

    • @CodeCat15
      @CodeCat15  2 роки тому

      Thank you for subscribing Rohit. Please do share the channel with your iOS group. and always feel free to ask questions.

  • @aniltodakar6449
    @aniltodakar6449 3 роки тому +1

    Thank You for your good explanation sir.
    In this video you write "array of any" [Any] but can we write whole "array to any" like this "[Any] = Any "?

  • @prachibile2798
    @prachibile2798 3 роки тому +1

    I really like your video so much. As I am new to iOS, I am going through your playlist. But I request you to please make a video on frameworks like AVFoundation with a small project. It will be a great help :)

    • @CodeCat15
      @CodeCat15  3 роки тому

      Welcome to the channel Prachi, I am glad these videos are helpful. Do you have something specific for the AVFoundation video because just playing songs and pausing them will be too simple for a demo if you have certain complexity in mind then please do share would explore that.

    • @prachibile2798
      @prachibile2798 3 роки тому +1

      @@CodeCat15 Hello Sir, First up all, Thanks for your reply :)
      I have in my mind to design app like amazon music but only with few finctionalities like -
      1. Show all musics in collection view
      2. On click of any one of music should redirect to another vc
      3. And on another VC, there will be functionality like -> play music, pause music, save music, download music to phone, share music with others, etc.
      So, this example we will be covering design pattern, Frameworks - AVFoundation, Social, Corebluetooth also networkig ( where we will call music api to get music list).
      And this example will help me to understand how to start developing any application, what should be the first step, etc.
      Also if possible to use 3rd party library, then it will be plus point to know how I can use 3rd party library in same demo .

    • @CodeCat15
      @CodeCat15  3 роки тому

      That's a detailed set of requirement thanks Prachi, I'll try to set something up for this real soon also do you want me to do this in SwiftUI? This will be real quick in SwiftUI to be honest hehe

    • @prachibile2798
      @prachibile2798 3 роки тому

      @@CodeCat15 I request you to please make it in UiKit only :)
      And Thank you very much in advance!
      Your way of explanation is really awesome, so I am sure this video will be more helpful. :)

  • @anitasingh-id2jt
    @anitasingh-id2jt 3 роки тому +1

    Hello Sir, please make video on pushnotification,paymentgatewat ,certificates and profiles
    i shall be highly oblige.

    • @CodeCat15
      @CodeCat15  3 роки тому

      Hey there Anita, I don't really have my own apple developer account but I think with the increased demand for similar topics I plan to purchase it in the coming days. Apologies for not fulfilling this request for the moment.

  • @deepakdeore8917
    @deepakdeore8917 3 роки тому +1

    Explained very nice indeed Thanks. Can we write a generic function with Any is it good practice?

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Thanks Deepak, as apple said i would avoid using any and anyobject. If you create a generic function with any and any object there’s more damage coz everytime that generic function returns me data i have to type cast it first to an int or string or an object to actually use it.
      As apple said be very specific in your code. It’s always a good idea to return a concrete type than an anonymous type. So avoid using any with generics unless you have a solid technical reason for it.

    • @deepakdeore8917
      @deepakdeore8917 3 роки тому +1

      @@CodeCat15 Thanks for your reply and suggestion.

    • @CodeCat15
      @CodeCat15  3 роки тому

      Am glad it helped, please do ask more questions i will be happy to answer them 😊

  • @mohitkokwani741
    @mohitkokwani741 3 роки тому +1

    hello sir !
    i have just completed your Swift programming hindi tutorial for beginners playlist , i m totally beginner so can you kindly please guide me which playlist should i watch now ?
    Thank you for helping me learning swift programming.

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Hello Mohit, welcome to the channel. You may start with protocol playlist
      Link: ua-cam.com/play/PLb5R4QC2DtFtCm6ArHb9po_wcDgZjb2Ac.html
      I would suggest you practice what you have learned from the videos than just watching them and do ask questions on the topic if you have any
      Also do share this channel with your friends who are starting their journey in iOS development.

    • @mohitkokwani741
      @mohitkokwani741 3 роки тому +1

      @@CodeCat15 of course thank you so much sir.

    • @mohitkokwani741
      @mohitkokwani741 3 роки тому +1

      @@CodeCat15 hello sir ! actually i was doing some practice with watching your video and i have learned a lot about swift and i like your teaching technique, its too easy to understand the complex topics also, so i have a hardly request to you that if possible can you make a playlist on "how to develop native iOS apps" in which you explain everything from starting that what is xcode , what is playground , what is UIlabel, UIbutton where them came from , what's their parent class etc.. ,when to use them because it will help alot to some peoples like me (Beginners) who are willing to learn how to develop iOS app development. Thank you so much for teaching everything :)

  • @happyg1676
    @happyg1676 3 роки тому +1

    sir make video of core graphics

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      I sure want to and would love to make videos on core graphics, but first let me cover basics in swift as i feel there’s so much to cover but surely i will cover CG 😊. Please do share this video with your iOS group

    • @happyg1676
      @happyg1676 3 роки тому +1

      @@CodeCat15 sure sir

  • @shubhamdubey8393
    @shubhamdubey8393 3 роки тому +1

    Great video, sir i mailed you something can you please check that .

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      I just responded to your email :)

  • @randalnadadava9316
    @randalnadadava9316 3 роки тому

    your know. very powerful but please speak hindi only if u not then english only

    • @CodeCat15
      @CodeCat15  3 роки тому

      Hello Randal, welcome to the channel, was there any issues in understanding the video due to language? I use english and hindi because this is how I speak or should i say how people around me spoke and I grasped from them, so its a mix of both. But if you did not understand any particular section from the video due to this then please ask questions around it and I will be happy to answer those :) and apologies if the way I talk has caused you trouble in understanding the topic

    • @randalnadadava9316
      @randalnadadava9316 3 роки тому

      please speak hindi bcz english video many more in youtube please speak hindi only

    • @CodeCat15
      @CodeCat15  3 роки тому +1

      Theek hai mai koshish karunga poora ki pure hindi mai he bolu, aapko kuch doubts hai kya is video mai? Plz batana aur ho sake to ye channel aapne dosto k saath bhi share karna

    • @randalnadadava9316
      @randalnadadava9316 3 роки тому

      sir aapka best one ho , hindi video banavo only please hindi me samajana best hota he so .

    • @randalnadadava9316
      @randalnadadava9316 3 роки тому

      mere group frnds ki demand he aap hindi bol ke video create kare bcz youtube pe english wala videk bahut mil jaye ga aap ka ios ans objective c ma bahut khow. he aapke pass so please hindi me video create kare best of luck aap meri bat samaj sake ge

  • @_ritesh305
    @_ritesh305 2 роки тому +1

    please pronounce swift properly.. its so irritating to hear

    • @CodeCat15
      @CodeCat15  2 роки тому +1

      There are different people from different parts of India/World who pronounce things differently.
      I hope you correct them all based on your irritation levels, you sir are doing a good service to the society in making it a better place.
      I am truly thankful, that you corrected my pronunciation than commenting on the code or topic.
      Thank you Sir I’ll try to do better.

    • @_ritesh305
      @_ritesh305 2 роки тому +1

      @@CodeCat15 People wouldn’t criticize you if they didn’t think you were worth criticizing. People expect more from those who are flawless.. your pronunciation is so well overall that it hurts to hear you mess with one word only. Anyway it only means that people are paying attention.

    • @CodeCat15
      @CodeCat15  2 роки тому +1

      Now when you explained it that way it makes sense and I appreciate it. I read the last lines from your first comment and I was taken back a little.
      I’ll try to get it right in my next videos for sure but apologies for the same if you come across more of this pronunciation blunders 😂

  • @randalnadadava9316
    @randalnadadava9316 3 роки тому

    mere bhai english bol ya fir english