dcloudio / dcloudio/native-docs

splashViewForApp 闪屏页自定义动画无效

Offen
#97 0 Kommentare 0 Reaktionen 2 zugewiesene Personen Beansprucht von @xiaohuapunk Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
88
Forks
75
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**问题描述**
iOS端:DCUniMPSDKEngineDelegate里面方法
/// 返回打开小程序时的闪屏视图
/// @param appid appid
- (UIView *)splashViewForApp:(NSString *)appid;

在这个代理方法里面的splashView中代码添加自定义加载动画无效,尝试在其他UIview中添加,动画是没有问题的

同一个页面,我直接在一个viewcontroller的view上添加,是有效的,代码如下,直接addSubview
```
UIView *splashView = [[[NSBundle mainBundle] loadNibNamed:@"SplashView" owner:self options:nil] lastObject];
[self.view addSubview:splashView];
```

但是我放到UNI提供的代理方法中,就不行了,动画效果丧失:
```
/// 返回打开小程序时的自定义闪屏视图
- (UIView *)splashViewForApp:(NSString *)appid {
UIView *splashView = [[[NSBundle mainBundle] loadNibNamed:@"SplashView" owner:self options:nil] lastObject];
return splashView;
}

```

猜测,是这个代理方法做了什么吗?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.