引起注意并促进可操作控件的发现

时间:2015-05-29 18:58:47

标签: ios ios8 uibutton

在尝试推迟内容时,我选择不使用任何(导航或工具)栏。

该应用有一个有色UIButton,会显示一个操作表(用户可以共享内容,并调整首选项)。

我看到的是人们不与按钮互动。他们只看内容。

我想以微妙初始方式引起对按钮的注意,用户会发现可以共享或更改内容。

App content and UIButton

不成功的方法:

  • 将按钮从文本更改为(动作或设置)图标图像。虽然更容易识别/熟悉,但我却失去了描述所选内容的标题。

  • UIAlertController(显示首次启动的说明)。简直过于讨厌。

  • 教练标记。透明覆盖层破坏了最初的印象。

有什么帮助,但仍然不引人注目:

  • 更改背景/前景色。黑色背景上的按钮更加明显。

我没有尝试偶尔为按钮设置动画(直到用户最终点击它为止)。

是否有其他或更好的方法可以帮助用户发现应用是互动的?

1 个答案:

答案 0 :(得分:1)

让它发光。让它发光。让它发光。

view.layer.shadowColor = [UIColor whiteColor].CGColor;
view.layer.shadowRadius = 10.0f;
view.layer.shadowOpacity = 1.0f;
view.layer.shadowOffset = CGSizeZero;

[UIView animateWithDuration:0.5f delay:0 options:UIViewAnimationOptionAutoreverse | UIViewAnimationCurveEaseInOut | UIViewAnimationOptionRepeat | UIViewAnimationOptionAllowUserInteraction  animations:^{

    [UIView setAnimationRepeatCount:5];

    view.transform = CGAffineTransformMakeScale(1.2f, 1.2f);


} completion:^(BOOL finished) {

    view.layer.shadowRadius = 0.0f;
    view.transform = CGAffineTransformMakeScale(1.0f, 1.0f);
}];

根据需要调整颜色,大小和时间。