dcloudio / dcloudio/uni-app

ios 怎样才可以对手势返回进行拦截呢

Open
#5,425 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

### Bug 描述

在 ios 设备上的页面怎么才能够对手势进行拦截呢,uni-app 提供的 `onBackPress` 生命周期函数不支持 ios,有没有什么好的办法实现呢?(可能需要兼容 app 和 h5 )

### 复现步骤

如上提问

### 预期结果

_No response_

### 实际结果

_No response_

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Clarify the expected interception behavior and the app-versus-H5 scope before locating the relevant iOS gesture-back and onBackPress handling; completion should include a confirmed approach and coverage for the requested platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile-dev, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.