Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7715877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:29:49+00:00 2026-06-01T02:29:49+00:00

My question is pretty simple: are gesture recognizers and KVOs cleared when UIViewController is

  • 0

My question is pretty simple: are gesture recognizers and KVOs cleared when UIViewController is set to nil?

I have a project where the user can create and delete some complex UIViewController based instances. These are stored in an NSMutableArray.

If I just delete the instance from the array and then set it to nil (which I guess is superfluous) will all the @properties of the instance get cleared (assuming there are no other references to them)?

EDIT
I get the alert (error) below when I don’t manage the KVOs – so I guess the answer is ‘no’

An instance 0xce26d40 of class Track was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here’s the current observation info:
(
Context: 0x0, Property: 0x7530300>
Context: 0x0, Property: 0x75320f0>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:29:51+00:00Added an answer on June 1, 2026 at 2:29 am

    An object owns its ‘@properties’ (assuming that they are strong or retain). And a view owns any gesture recognizers that are added to it. So when the object is deallocated, its properties and recognizers will be released, and deallocated if no one else owns them.

    Key value observers and notification observers need to be manually unsubscribed before they get deallocated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question is pretty simple: Q: Do get and set functions have an increased
I have just started learning GWT. My question is pretty simple: If I create
my question is pretty simple: can PHP and Java communicate, while PHP being the
My question is pretty simple: How can I write a function once and make
Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
hopefully a pretty simple question this time. I have a Select method in a
I have a pretty simple question which perhaps someone familiar with Server/Client design &
The question is pretty simple, is it possible to create a FIPS 140-2 compliant
The question is pretty simple actually. I have a module in my system containing
The question is pretty simple: how do you set InstanceContextMode & ConcurrencyMode in WF4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.