You want to be able to allow your users to share content inside your apps with theirfriends, through an interface, such as Facebook and Twitter. Solution Create an instance of the UIActivityViewController class and share your contentthrough this clas…
Presenting and Managing Views with UIViewController ProblemYou want to switch among different views in your application. SolutionUse the UIViewController class. ( Apple’s strategy for iOS development was to use the model-view-controller (MVC) divisio…
You would like to present a few options to your users from which they can pick anoption, through a UI that is compact, simple, and easy to understand. effect: 1. declare control #import "ViewController.h" @interface ViewController () @property (…
ProblemYou want to display an image instead of text as the title of the current view controlleron the navigation controller SolutionUse the titleView property of the view controller’s navigation item - (void)viewDidLoad { [super viewDidLoad]; /* Crea…
ProblemYou would like to directly manipulate the array of view controllers associated with aspecific navigation controller SolutionUse the viewControllers property of the UINavigationController class to access andmodify the array of view controllers…
ProblemYou would like to allow your users to move from one view controller to the other witha smooth and built-in animation. SolutionUse an instance of UINavigationController. What it's like If you’ve used an iPhone, iPod Touch, or iPad before, chanc…
Picking the Date and Time with UIDatePicker effect: 1. declaring a property of type UIDatePicker #import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UIDatePicker *myDatePicker; @end @implementation ViewControlle…
https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html#//apple_ref/doc/uid/TP40007457-CH112-SW10 https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGfor…
1. github https://githuber.cn/search?language=Objective-C https://www.jianshu.com/u/815d10a4bdce https://blog.csdn.net/hello_hwc https://blog.ibireme.com/2015/05/18/runloop/ https://www.jianshu.com/p/64e33f9bdc03 https://github.com/zhouhuanqiang/Lear…
NSSet and NSDictionary, along with NSArray are the workhorse collection classes of Foundation. Unlike other standard libraries, implementation details are hidden from developers, allowing them to write simple code and trust that it will be (reasonabl…
前言 刚刚接触iOS的时候,我就一直很好奇,模拟器上面能不能直接安装app呢?如果可以,我们就直接在模拟器上面聊QQ和微信了.直到昨天和朋友们聊到了这个话题,没有想到还真的可以给模拟器“安装”app! 一.应用场景 先来谈谈是什么情况下,会有在模拟器上安装app的需求. 在一个大公司里,对源码的管理有严格的制度,非开发人员是没有权限接触到源码的.对苹果的开发证书管理也非常严格,甚至连开发人员也没有发布证书,证书只在持续集成环境或者Appstore产线里面,或者只在最后打包上架的人手上. 那么现在…
我们这边和h5商量好传递一个结构体参数过去,然后由于解析的问题,导致我这里传递的参数,到h5那边不执行那边的方法 -(void)loginCallBack { NSDictionary *dic; user = [IBKeychain loadValueForKey:kUserKey]; if (user) { dic= @{ @"id":[user objectForKey:@"userId"], @"token":[user objectFo…
https://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_tasks/ci_tasks.html#//apple_ref/doc/uid/TP30001185-CH3-TPXREF101 Processing images means applying filters-an image filter is a piece of software that…
转自: https://streamdata.io/blog/100-webhook-implementations/  很不错的整理 What is the scope of the event-driven API landscape - We give you 100 Webhook implementations We work hard to stay in tune with the event-driven architecture space, trying to underst…
In this tutorial we will learn How to communicate with an external device like a microcontroller board or modem using the Serial port of a windows PC(Windows XP,7). The software is written using C language and communicates with the Serial Port using …
关于DRA的官方描述: The simplest way to diagnose and repair database problems is to use the Data Recovery Advisor. This Oracle Database tool provides an infrastructure for diagnosing persistent data failures, presenting repair options to the user, and automa…
一.配置文件位置 /usr/local/opt/grafana/share/grafana/default.ini /usr/local/etc/grafana/grafana.ini 二.init格式 1.注释: 以";"开头,不管多长或多短,独占一行 三.配置文件调用顺序 1.grafana启动时,首先会调用/usr/local/opt/grafana/share/grafana/default.ini(定义了默认的启动信息) 2.之后会调用我们写的--config所指向的配置文件…
翻译自:openURL Deprecated in iOS10 译者:Haley_Wong 苹果在iOS 2 推出了 openURL:方法 作为一种打开外部链接的方式.而与之相关的方法 canOpenURL: 在iOS 9隐私控制里也禁止查询设备中已安装的App. 苹果在iOS 10 中已经弃用了openURL:这个旧方法,用openURL:options:completionHandler:来代替.这篇快速指南就是教你在iOS 10 下如何打开一个外部链接的文章. (Haley_Wong注:c…
http://blog.csdn.net/pipisorry/article/details/51812022 本文主要说明 linux和windows文件共享, windows和ubuntu互相访问 , Linux和安卓设备文件互传和共享.(ubuntu16.04, 14.04和win7测试通过) linux和windows文件共享 window对linux文件内容进行操作,利用linux samba服务,将linux的文件设成共享文件,window就可以以访问共享文件的方式来访问linux文…
https://trac.ffmpeg.org/wiki/Encode/H.264 FFmpeg and H.264 Encoding Guide Contents Constant Rate Factor (CRF) Two-Pass Lossless H.264 Overwriting default preset settings Additional Information & Tips FAQ Additional Resources The goal of this guide is…
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { if #available(iOS 10.0, *) { UNUserNotificationCenter.current().requestAuthorization(options: [.sound, .badge…
通知在ios10 中推荐使用 导入  import UserNotifications  头文件 if #available(iOS 10.0, *) { UNUserNotificationCenter.current().requestAuthorization(options: [.carPlay,.badge,.sound,.alert]) { (Success, error) in } } else { let setting = UIUserNotificationSettings(…
IOS 为例 1. Fiddler -> Tools -> Options ->Connection 2. 手机 Settings -> WIFI ->设置当前连接的网络 3. 红色打钩的地方,填上本机IP ,端口号8888,与fiddler设置一致…
支持手机,PC最好的是jquery photoClip插件,下载地址&示例:https://github.com/topoadmin/photoClip demo.html 代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge&quo…
Action Bar The action bar is a dedicated piece of real estate at the top of each screen that is generally persistent throughout the app. It provides several key functions: Makes important actions prominent and accessible in a predictable way (such as…
一.配置文件位置 /usr/local/opt/grafana/share/grafana/default.ini /usr/local/etc/grafana/grafana.ini 二.init格式 1.注释: 以";"开头,不管多长或多短,独占一行 三.配置文件调用顺序 1.grafana启动时,首先会调用/usr/local/opt/grafana/share/grafana/default.ini(定义了默认的启动信息) 2.之后会调用我们写的--config所指向的配置文件…
作为linux的热衷者和初学者,我们在学习的过程中难免会碰到不少的问题,下面简单的介绍和总结一下,我是如何通过以下两种方法解决在vmware中实现Ubuntu与win7(主机)之间同步实现共享文件的...1. 通过Vmware Tools方法;2. 通过samba方法...至于其他版本的linux发行版:以及不同的主机系统——xp系统,暂时木有亲测,但细细想来真真是相似的哈~~~~~~ps:如果出现一些未知错误,不知猴年马月才能解决时,不妨果断卸载并重新安装vmware和Ubuntu,这最多也就…
elastix82*CLI> core show application  SoftHangup -= Info about application 'SoftHangup' =- [Synopsis]Hangs up the requested channel. [Description]Hangs up the requested channel.  If there are no channels to  hangup, theapplication will report it. [Sy…
[说明]由于这些库一直在更新,请自己选择合适的稳定版本下载. 另外如果发现有问题或者你有更好的库,欢迎留言告诉我. 谷歌官方的针对Dart语言的一些实用性的功能以及扩展的库 -- Quiver Quiver是一组针对Dart的实用程序库,它使使用许多Dart库变得更容易.更方便,或者增加了额外的功能. github地址 https://github.com/google/quiver-dart 使用方式: dependencies: quiver: '>=2.0.0 <3.0.0' 根据pub…
1.info中写上 <key>NSCameraUsageDescription</key> <string>需要您的同意才能读取媒体资料库</string> <key>NSLocationWhenInUseUsageDescription</key> <string>需要您的同意才能读取媒体资料库</string> <key>NSPhotoLibraryUsageDescription</ke…