面试被问到这个问题,不是很清楚,写代码测试并记录一下。 #pragma mark - 测试通知-(void)testNotification{ // 初始化一个按钮 UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(100, ...
分类:
移动开发 时间:
2018-04-27 23:02:37
阅读次数:
302
首先,sns = Simple Notification Service,sqs = Simple Queue Service sns与sqs有什么不同? (ref:https://stackoverflow.com/questions/13681213/what-is-the-difference ...
分类:
编程语言 时间:
2018-04-16 21:31:34
阅读次数:
825
- (void)viewDidLoad { [super viewDidLoad]; // 通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notification:) name:nil obj... ...
分类:
移动开发 时间:
2018-04-13 17:52:48
阅读次数:
228
1、确保确保iptables及selinux不会成为阻碍。保持集群时间同步2、在ka1上 vim /etc/keepalived/keepalived.confglobal_defs {
notification_email {
root
分类:
其他好文 时间:
2018-04-03 15:21:13
阅读次数:
110
Notification.requestPermission(function(status) { //default 用户没有接收或拒绝授权请求 不能显示通知 //granted 用户接受授权请求 允许显示通知 //denied 用户拒绝授权请求 不允许显示通知 console.log('perm... ...
分类:
其他好文 时间:
2018-04-03 14:26:53
阅读次数:
485
本地推送: UILocalNotification *notification=[[UILocalNotification alloc] init]; if (notification!=nil) { NSDate *now=[NSDate new]; notification.fireDate=[ ...
分类:
移动开发 时间:
2018-03-31 12:07:17
阅读次数:
237
IPC,Inter-Processor Communication是SYS/BIOS处理核间通信的组件: IPC的几种应用方式: 1.最小使用(Minimal use) 这种情况是通过核间的通知机制(notification)来实施的,而一个通知所携带的信息是非常小的(一般是32bits),所以称为 ...
分类:
其他好文 时间:
2018-03-27 12:26:49
阅读次数:
214
概述 Toast Notification 在 UWP App 中有很重要的作用,能够很大程度上增强 App 和用户之间的沟通,比如运营推广活动、版本更新、提醒类任务提示等等。Toast Notification 可以通过图片、文字、按钮等创建可适配、可交互的通知。 我们在 About Window ...
今天看了一篇关于苹果系统接收推送消息的文章,简单记录一下 推送系统也有测试环境(沙盒环境)和正式环境 苹果推送服务 对于苹果的 iOS 系统来说,它有自建的官方推送服务 APNS(Apple Push Notification service)。当我们的手机处于开机状态时,iOS 系统内置的一个推送 ...
分类:
移动开发 时间:
2018-03-15 11:09:25
阅读次数:
230
一、KVO 是什么? KVO 是 Objective-C 对观察者设计模式的一种实现。【另外一种是:通知机制(notification),详情参考:iOS 趣谈设计模式——通知】; KVO 提供一种机制,指定一个被观察对象(例如 A 类),当对象某个属性(例如 A 中的字符串 name)发生更改时, ...
分类:
移动开发 时间:
2018-03-13 15:41:42
阅读次数:
264