---
title: "unregisterForTraitChanges:"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitraitchangeobservable-7qoet/unregisterfortraitchanges:"
---

# unregisterForTraitChanges:

Tells the system to stop observing previously registered traits.

## Declaration

```occ
- (void) unregisterForTraitChanges:(id<UITraitChangeRegistration>) registration;
```

## Parameters

- `registration`: A token that identifies the registration, obtained from one of the trait registration method calls.

## Discussion

Discussion Use this method if you want the system to stop observing trait changes for a previous registration. UIKit doesn’t require you to unregister for trait changes at the end of the view lifecycle. Unregister only if you need to dynamically change which traits you observe.

## See Also

### Observing trait changes

- [registerForTraitChanges:withAction:](uikit/uitraitchangeobservable-7qoet/registerfortraitchanges:withaction:.md)
- [registerForTraitChanges:withHandler:](uikit/uitraitchangeobservable-7qoet/registerfortraitchanges:withhandler:.md)
- [registerForTraitChanges:withTarget:action:](uikit/uitraitchangeobservable-7qoet/registerfortraitchanges:withtarget:action:.md)
- [UITraitChangeHandler](uikit/uitraitchangehandler.md)
- [UITraitChangeRegistration](uikit/uitraitchangeregistration.md)
