标签:des http io ar os sp div on log
让我们来看看是如何实现的吧,首先要知道打印机的ip地址,然后用socket通过打印机的ip地址进行传送要打印的内容,并传送让打印机打印的指令即可。
代码如下:
.h 里面
.m里面
其他的方法,还有利用UIPrintInteractionController,不过这需要打印机设置中有AirPrinter。
标签:des http io ar os sp div on log
原文地址:http://www.cnblogs.com/Camier-myNiuer/p/4083047.html