发送GET请求-(void)get{ //1.创建会话管理者 AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; NSDictionary *dictM = @{ ...
分类:
移动开发 时间:
2016-01-19 00:04:13
阅读次数:
591
一、继承机制1、对象冒充:构造函数使用 this 关键字给所有属性和方法赋值,可使 ClassA 构造函数成为 ClassB 的方法,然后调用它。function ClassZ() { this.newMethod = ClassX; this.newMethod(); delet...
分类:
移动开发 时间:
2016-01-18 23:59:59
阅读次数:
401
导入第三方框架ZipArchive之后还要在系统库文件中导入一个如下文件(搜索libz出来的任何一个都可以)文件压缩-(void)zip{ NSArray *arrayM = @[@"/Users/gengqun/Desktop/Snip20160118_866.png", ...
分类:
移动开发 时间:
2016-01-19 00:02:17
阅读次数:
398
CocoaPods 是开发 OS X 和 iOS 应用程序的一个第三方库的依赖管理工具。利用 CocoaPods,可以定义自己的依赖关系 (称作 pods),并且随着时间的变化,以及在整个开发环境中对第三方库的版本管理非常方便。CocoaPods 背后的理念主要体现在两个方面。首先,在工程中引入第三...
分类:
移动开发 时间:
2016-01-18 22:48:55
阅读次数:
368
在上篇添加账户源码解析的博文中,我们发现功能是由AccountManager的mService成员来实现。而mService其实是AccountManagerService,如果对android系统有了解的话一定会发现AccountManagerService是运行在SystemServer进...
分类:
移动开发 时间:
2016-01-18 22:47:50
阅读次数:
303
在进行网络数据交换的时候总是遇到各种各样的错误。这些网络错误是来自client还是server。我们来梳理一下:我们将错误分为三个大类操作系统错误http请求错误应用错误1.操作系统错误是因为数据包没有到达预定目标导致的,造成原因可能有:没有网络——没有连接网络无法路由到目标主机——主要是因为目标主...
分类:
移动开发 时间:
2016-01-18 22:38:57
阅读次数:
299
1.AdjustFontSize2.ATProperty3.Backlight4.ESJsonFormat5.FuzzyAutocomplete6.HighlightSelectedString7.KSImageNamed8.VVDocumenter-Xcode9.ZLGotoSandbox
分类:
移动开发 时间:
2016-01-18 22:38:21
阅读次数:
210
package com.itheima.mobileguard.services;import java.lang.reflect.Method;import android.app.Service;import android.content.BroadcastReceiver;import an...
分类:
移动开发 时间:
2016-01-18 22:39:13
阅读次数:
251
原帖地址:http://ogldev.atspace.co.uk/www/tutorial24/tutorial24.html Background In the previous tutorial we learned the basic principle behind the shadow m...
分类:
移动开发 时间:
2016-01-18 22:27:02
阅读次数:
316
---前提--- 1. 你得用 Clover 引导 (......) 2. 开启 kernelcache (开了也能 inject kext,还能patch kext,速度又快,为啥不开) 3. 你的 AppleHDA 现在工作正常 ---方法--- 先说 AppleHDA 的,估计就这个...
分类:
移动开发 时间:
2016-01-18 22:26:21
阅读次数:
252
1.#pragma mark - 方法分割线2.#pragma mark 要备注的内容3.//MARK:要备注的内容4.//FIXME:要备注的内容5.//TODO:要备注的内容
分类:
移动开发 时间:
2016-01-18 22:21:30
阅读次数:
147
不久前,苹果宣布请求要为https的安全连接于是,老的程序就报错:AppTransportSecurityhasblockedacleartextHTTP(http://)resourceloadsinceitisinsecure.Temporaryexceptionscanbeconfiguredviayourapp‘sInfo.plistfile.客户端可以在Infolist中做修改,或者升级服务器找到程序..
分类:
移动开发 时间:
2016-01-18 21:01:14
阅读次数:
256
前言掌握好Activ的生命周期对任何安卓开发者来说都很重要,当你深入理解时,就可以编写出更加流畅连贯的程序/应用。你的程序将会拥有更好的用户体验。(一)活动状态:每个Activity在其生命周期中最多可能会有四种状态a:运行状态,当一个Activity位于回退栈栈顶时,这是Activity就..
分类:
移动开发 时间:
2016-01-18 20:55:54
阅读次数:
309
Java代码:启动动画Animation shake = AnimationUtils.loadAnimation(this, R.anim.shake); findViewById(R.id.pw).startAnimation(shake); anim/shake.xml ...
分类:
移动开发 时间:
2016-01-18 20:43:09
阅读次数:
296
1.url编码ios中http请求遇到汉字的时候,需要转化成UTF-8,用到的方法是:NSString * encodingString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];2.ur...
分类:
移动开发 时间:
2016-01-18 20:41:07
阅读次数:
191
Android 混淆Gradle的简介: http://www.flysnow.org/2015/03/30/manage-your-android-project-with-gradle.html多渠道打包的介绍: http://blog.csdn.net/tu_bingbing/article/...
分类:
移动开发 时间:
2016-01-18 20:40:03
阅读次数:
180
什么叫离线断点下载,就是用户下载中关闭程序重新打开可以继续下载代码实现如下:#import "ViewController.h"@interface ViewController ()//输出流@property (nonatomic, strong) NSOutputStream *stream ...
分类:
移动开发 时间:
2016-01-18 19:12:42
阅读次数:
202