why UIView variables could not create retain cycle problem?iphone/ipad - parent UIView is blocking touches from getting to subviews - why?UIView not retaining subviewsDoes the absence of a “likely to lead to a retain cycle” warning imply a strong reference cycle will not be created?Retain Cycle on Retain Cyclesweak variable with a strong reference in a block: does not create a retain cycle?Retain Cycle in Swift delegateNo Retain Cycle, But why still got retain cycle warning?Retaining cycle with passing objectsRetain cycle concernMemory management: retain cycle with weak var, non retain cycle with unowned. Why?

Why is python script running in background consuming 100 % CPU?

Can anyone provide me info what this is?

Why were early aviators' trousers flared at the thigh?

Why could the Lunar Ascent Engine be used only once?

In how many ways can we partition a set into smaller subsets so the sum of the numbers in each subset is equal?

What is the backup for a glass cockpit, if a plane loses power to the displays/controls?

Why didn't Daenerys' advisers suggest assassinating Cersei?

How to convince boss to spend notice period on documentation instead of new projects

Character had a different name in the past. Which name should I use in a flashback?

Isn't Kirchhoff's junction law a violation of conservation of charge?

Why does string strummed with finger sound different from the one strummed with pick?

Managing heat dissipation in a magic wand

If you attack a Tarrasque while swallowed, what AC do you need to beat to hit it?

Can a problematic AL DM/organizer prevent me from running a separate AL-legal game at the same store?

How can I prevent Bash expansion from passing files starting with "-" as argument?

Windows reverting changes made by Linux to FAT32 partition

Failing students when it might cause them economic ruin

Have the writers and actors of Game Of Thrones responded to its poor reception?

How does the "reverse syntax" in Middle English work?

Cycling to work - 30 mile return

Why would Thor need to strike a building with lightning to attack enemies?

Can 2 light bulbs of 120V in series be used on 230V AC?

FIFO data structure in pure C

Would it be possible to set up a franchise in the ancient world?



why UIView variables could not create retain cycle problem?


iphone/ipad - parent UIView is blocking touches from getting to subviews - why?UIView not retaining subviewsDoes the absence of a “likely to lead to a retain cycle” warning imply a strong reference cycle will not be created?Retain Cycle on Retain Cyclesweak variable with a strong reference in a block: does not create a retain cycle?Retain Cycle in Swift delegateNo Retain Cycle, But why still got retain cycle warning?Retaining cycle with passing objectsRetain cycle concernMemory management: retain cycle with weak var, non retain cycle with unowned. Why?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















When I searched code of UIView , I could not understand that why superview and subviews properities does not create retain cycle?



extension UIView {

open var superview: UIView? get

open var subviews: [UIView] get

open var window: UIWindow? get









share|improve this question




























    2















    When I searched code of UIView , I could not understand that why superview and subviews properities does not create retain cycle?



    extension UIView {

    open var superview: UIView? get

    open var subviews: [UIView] get

    open var window: UIWindow? get









    share|improve this question
























      2












      2








      2








      When I searched code of UIView , I could not understand that why superview and subviews properities does not create retain cycle?



      extension UIView {

      open var superview: UIView? get

      open var subviews: [UIView] get

      open var window: UIWindow? get









      share|improve this question














      When I searched code of UIView , I could not understand that why superview and subviews properities does not create retain cycle?



      extension UIView {

      open var superview: UIView? get

      open var subviews: [UIView] get

      open var window: UIWindow? get






      uiview swift4.2 retain-cycle






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 20 at 13:09









      ahmetvefa53ahmetvefa53

      739




      739






















          2 Answers
          2






          active

          oldest

          votes


















          0














          A computed property is just a pair of a getter and a setter (or, in this case, it's a read-only property which is only a getter). The declaration doesn't tell you how any underlying data that the property uses might be stored or memory-managed.






          share|improve this answer






























            0















            I could not understand that why superview and subviews properities does not create retain cycle?




            It's because the view hierarchy is a directed graph with respect to retains. Views retain their subviews, but subviews don't retain their superviews.






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55261522%2fwhy-uiview-variables-could-not-create-retain-cycle-problem%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              A computed property is just a pair of a getter and a setter (or, in this case, it's a read-only property which is only a getter). The declaration doesn't tell you how any underlying data that the property uses might be stored or memory-managed.






              share|improve this answer



























                0














                A computed property is just a pair of a getter and a setter (or, in this case, it's a read-only property which is only a getter). The declaration doesn't tell you how any underlying data that the property uses might be stored or memory-managed.






                share|improve this answer

























                  0












                  0








                  0







                  A computed property is just a pair of a getter and a setter (or, in this case, it's a read-only property which is only a getter). The declaration doesn't tell you how any underlying data that the property uses might be stored or memory-managed.






                  share|improve this answer













                  A computed property is just a pair of a getter and a setter (or, in this case, it's a read-only property which is only a getter). The declaration doesn't tell you how any underlying data that the property uses might be stored or memory-managed.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 23 at 18:35









                  newacctnewacct

                  96.9k23136197




                  96.9k23136197























                      0















                      I could not understand that why superview and subviews properities does not create retain cycle?




                      It's because the view hierarchy is a directed graph with respect to retains. Views retain their subviews, but subviews don't retain their superviews.






                      share|improve this answer



























                        0















                        I could not understand that why superview and subviews properities does not create retain cycle?




                        It's because the view hierarchy is a directed graph with respect to retains. Views retain their subviews, but subviews don't retain their superviews.






                        share|improve this answer

























                          0












                          0








                          0








                          I could not understand that why superview and subviews properities does not create retain cycle?




                          It's because the view hierarchy is a directed graph with respect to retains. Views retain their subviews, but subviews don't retain their superviews.






                          share|improve this answer














                          I could not understand that why superview and subviews properities does not create retain cycle?




                          It's because the view hierarchy is a directed graph with respect to retains. Views retain their subviews, but subviews don't retain their superviews.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 23 at 20:29









                          CalebCaleb

                          111k17155244




                          111k17155244



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55261522%2fwhy-uiview-variables-could-not-create-retain-cycle-problem%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                              Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                              Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript