小编Roh*_*han的帖子

相机拍摄时闪光屏白色?

我想在拍摄相机时立即闪烁(然后淡出)屏幕,以便向用户提供已拍摄照片的指示(除了听觉线索之外).

这样的动画会放在哪里?另外,如何实现我可以控制淡出的持续时间?

注意:我为我的特定相机选择器创建了一个自定义叠加层.

任何表明照片被拍摄的东西都是我要找的东西.

animation camera image-capture ios

6
推荐指数
1
解决办法
1687
查看次数

一次设置所有UITextField的样式而不是每个ViewController的样式?

我正在尝试像所以设置所有文本字段的样式:

CGRect frameRect2 = _lastname_field.frame;
frameRect2.size.height = 30;

_lastname_field.font = [UIFont fontWithName:@"AppleGothic" size:15];
_lastname_field.frame = frameRect2;
_lastname_field.backgroundColor= [UIColor whiteColor];
_lastname_field.layer.cornerRadius = 5.0;
[_lastname_field.layer setBorderColor: [[UIColor grayColor] CGColor]];
[_lastname_field.layer setBorderWidth: 1.0];
_lastname_field.clipsToBounds = YES;
Run Code Online (Sandbox Code Playgroud)

那个领域看起来很棒.唯一的问题是,整个应用程序中有超过50个文本字段.有没有一种简单的方法可以用同样的方式设置所有这些样式?其中一些甚至没有合成/命名.

谢谢!

objective-c uitextfield uitextview ios

6
推荐指数
1
解决办法
5853
查看次数

检测通知托盘中的向左滑动?

我想检测用户何时在通知上向左滑动——它可以在任何通知上,因为我将使用通知侦听器检测最近解除了哪个通知。

是否有“全局”手势滑动我可以监听并且仅在我检测到我的通知被取消时触发我的特定于应用程序的事件?

notifications android gesture swipe

4
推荐指数
1
解决办法
2707
查看次数

无法在UITableView中点击红色减去删除按钮

我能够通过以下调用使每个UITableViewCell上出现红色减号按钮:

[self.tableview setEditing:YES];
Run Code Online (Sandbox Code Playgroud)

-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {

    return UITableViewCellEditingStyleDelete;
}
Run Code Online (Sandbox Code Playgroud)

现在,红色减号按钮出现在UITableViewCells的左侧.但是,我无法通过简单的点击与他们互动(只有当我从红色减号向右滑动时).

我想点击 "红色减号"按钮时出现"删除" 按钮,而不是在我滑动时.

为什么我的"Red Minus"按钮不能听轻拍手势?

编辑:这是我的UITableViewCells的截图:

我的UITableViewCells上的编辑模式

cocoa-touch uitableview ios

3
推荐指数
1
解决办法
1803
查看次数

从Android通知获取详细信息/扩展文本?

我已实施通知监听器以查找Gmail通知.

我想从通知中收集扩展文本(bigtext),如下面的通知所示:

gmail通知中显示的扩展文本

请参阅"----转发消息---"等,仅在用户展开通知以显示操作按钮时出现.

此字符串值不会出现在通知的"EXTRAS"数据中...

http://developer.android.com/reference/android/app/Notification.html

notifications android android-notifications

3
推荐指数
2
解决办法
2868
查看次数