- 博客(3)
- 资源 (26)
- 收藏
- 关注
原创 Mac中启动另一个程序并将窗口置于最前面
- (void)launchSoftWithBundleID:(NSString *)softPath{ NSBundle *softBundle = [NSBundle bundleWithPath:softPath]; NSString *bundleID = [softBundle bundleIdentifier]; //运行程序 NSTask *softT
2017-07-14 10:19:05 1425
原创 Mac 获取系统信息
- (void)iotest{ //如果你需要获得其它硬件的信息,将代码中的AppleAHCIDiskDriver替换为对应的键值就OK了,比如要获取电池信息就用AppleSmartBattery。 io_iterator_t iterator; kern_return_t kr; io_object_t driver; CFMutableDiction
2017-07-14 09:59:58 1105
原创 Mac NSUserNotification移除通知
//删除已经显示过的通知(已经存在用户的通知列表中的)[[NSUserNotificationCenter defaultUserNotificationCenter] removeAllDeliveredNotifications];//删除已经在执行的通知(比如那些循环递交的通知)for (NSUserNotification *notify in [[NSUserNotification
2017-07-14 09:23:04 928
打开偏好设置
2017-09-08
AirDrop通过UIActivityController分享
2016-10-21
模仿美团商城
2016-09-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人