<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/numberOfGroups(inImageBrowser:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)numberOfGroupsInImageBrowser:"
  },
  "title" : "numberOfGroups(inImageBrowser:)"
}
-->

# numberOfGroups(inImageBrowser:)

Returns the number of groups in an image browser view.

```
func numberOfGroups(inImageBrowser aBrowser: IKImageBrowserView!) -> Int
```

## Parameters

`aBrowser`

An image browser view.

## Return Value

The number of groups.

## Discussion

This method is optional.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)