> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# findViewByIdSelector

APISummary
根据 `idSelector` 属性查找 `UIView`。

## 语法

### Android

```java
public View findViewByIdSelector(String id);
```

#### 参数说明

- `id`: 前端在布局文件中指定的视图的 id 属性。

#### 返回值

- 与 idSelector 属性相对应的 `UIView` 节点。

### iOS

```objc
- (nullable UIView *)viewWithIdSelector:(nonnull NSString *)idSelector;
```

#### 参数说明

- `idSelector`: 前端在布局文件中指定的视图的 id 属性。

#### 返回值

- 与 idSelector 属性相对应的 `UIView` 节点。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view.find-view-by-id-selector`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/lynx-view/find-view-by-id-selector.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| find-view-by-id-selector | Yes (1.0) | No | Yes (1.0) | No | No | No |

**`find-view-by-id-selector`**

find view by idselector

**Specifications:**

