doorxp

Blog

include/mach-o/dyld-interposing.h

/*  * Copyright (c) 2005-2008 Apple Computer, Inc. All rights reserved.  *  * @APPLE_LICENSE_HEADER_START@  *   * This file contains Original&nbs

shared library is loaded auto run

It's run when a shared library is loaded, typically during program startup.1. before mainvoid tmain() __attribute__((constructor(101))){     printf("abc\n"); }2.module inittypedef  void (IN

OSX 下编译 upx

依赖库编译ucl下载地址:http://www.oberhumer.com/opensource/ucl/#download    解压,进入文件夹./configure make allupx下载 upxexport UPX_UCLDIR=path to ucl sourcemake all输出文件为:upx.out

宏的更高级应用.

当中 objc源文件中要写一个 JS 代码或 json, 怎样让它语法高亮方法如下:定义一个红#define JS(x) #x但上面的红有个问题,就是宏中不能有逗号,解决方案如下:p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 19.0px Helvetica; color: #eb905a; background-color: #000000}#define JS(...) #__VA_ARGS__实际效果如下.

Rate for App 代码实现

在app内部实现评价。App实现评价一般有下面几种方式:1. 代码直接调用[SKStoreReviewController requestReview];//ios10.3优点:程序内,方便用户.2.url 跳转 NSString *strUrl = @"itms-apps://itunes.apple.com/app/id{APPID}?action=write-review";  NSURL 

分析基于ReponderChain的对象交互方式

这种对象交互方式的缺点显而易见,它只能对存在于Reponder Chain上的UIResponder对象起作用。优点倒是也有蛮多:以前靠delegate层层传递的方案,可以改为这种基于Responder Chain的方式来传递。在复杂UI层级的页面中,这种方式可以避免无谓的delegate声明。由于众多自定义事件都通过这种方式做了传递,就使得事件处理的逻辑得到归拢。在这个方法里面下断点就能够管理所有的事件处理。使用Strategy模式优化之后,UIViewController/UIView的事件

ramdisk

// 分配给 ramdisk 相应大小的空间 diskutil erasevolume HFS+ 'ramdisk' `hdiutil attach -nomount ram://$[1024*2048]` 打开元数据索引,如果你使用 Xcode 内部的调试工具这是必须的。因为调试工具使用元数据索引来查询符号连接 mdutil -i on /Volum

​RSA加密算法和加签算法

首先了解一下几个相关概念,以方便后面遇到的问题的解决:RSA算法:1977年由Ron Rivest、Adi Shamirh和LenAdleman发明的,RSA就是取自他们三个人的名字。算法基于一个数论:将两个大素数相乘非常容易,但要对这个乘积的结果进行因式分解却非常困难,因此可以把乘积公开作为公钥。该算法能够抵抗目前已知的所有密码攻击。RSA算法是一种非对称算法,算法需要一对密钥,使用其中一个加密,需要使用另外一个才能解密。我们在进行RSA加密通讯时,就把公钥放在客户端,私钥留在服务器。&nbs

re-sign an iOS app with another developer account

To re-sign an iOS app with another developer account, ensure that the following are in place first.Distribution certificate of the other developer accountA provisioning profile from the other developer accountNote that the Apple requires bundle IDs t

xcode xip 解压.

The .xip file format contains an archive (xar containing a gzip archive and metadata) and a signature of the archive.To decode an .xip file, use the following commands:pkgutil --check-signature <xip-fil
«   2024年1月   »
1234567
891011121314
15161718192021
22232425262728
293031
控制面板
您好,欢迎到访网站!
  查看权限
网站分类
搜索
最新留言

    Powered By Z-BlogPHP 1.5.1 Zero

    Copyright doorxp.com Rights Reserved.