> 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.

# findUIByName

APISummary
根据 name 属性查找 `LynxUI` 节点。

## 语法

### Android

```java
public LynxBaseUI findUIByName(String name);
```

#### 参数说明

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

#### 返回值

- 与 name 属性相对应的 `LynxUI` 节点。

### iOS

```objc
- (nullable LynxUI *)uiWithName:(nonnull NSString *)name;
```

#### 参数说明

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

#### 返回值

- 与 name 属性相对应的 `LynxUI` 节点。

## 兼容性

**Compatibility Table**

**Query:** `lynx-native-api.lynx-view.find-ui-by-name`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| find-ui-by-name | Yes (1.0) | No | Yes (1.0) | No | No | No |

**`find-ui-by-name`**

find ui by name

**Specifications:**

