解决方法:
点击一下工程,工程-->"Build Settings"-->找到Objective-C Automatic Reference Counting项-->将它的值设置为NO。ok
找到Objective-C Automatic Reference Counting项...
分类:
其他好文 时间:
2014-06-05 07:43:00
阅读次数:
303
最好的用户体验就是私人定制,今天说下推送铃声的私人定制。
分为3个步骤:
1.制作推送提醒铃声
一般的iphone手机铃声都可以,限时30s之内。
2.倒入项目
将制作好的铃声添加到xcode的工程项目中
3.修改推送json(修改后台)
$body['aps'] = array(
'alert' => $message,
//'soun...
分类:
其他好文 时间:
2014-06-03 03:19:20
阅读次数:
245
一、为什么GUI是单线程化
传统的GUI应用程序通常都是单线程的。
1. 在代码的各个位置都需要调用poll方法来获得输入事件(这种方式将给代码带来极大的混乱)
2. 通过一个“主事件循环(Main Event Loop)”来间接地执行应用程序的所有代码。
如果在主事件循环中调用的代码需要很长时间才能执行完成,那么用户界面就会“冻结”,直到代码执行完成。这是因为只有当执行控制权返回到主事件...
分类:
编程语言 时间:
2014-06-03 01:28:22
阅读次数:
221
错误描述:在python代码中通过selenium来初始化一个firefox浏览器失败,看了下selenium的版本是2.35,然后用firefox --version看了下是28.0,firefox好像不听话自动升级了导致了旧版selenium不支持。
Traceback (most recent call last):
File "C:\Python27\erSiteCompare.p...
分类:
Web程序 时间:
2014-06-02 22:31:07
阅读次数:
611
2014-05-31 BaoXinjian In Capgemini1.
SRW的主要作用控制报表的运行 -> srw.program_abort在运行时输出信息 -> srw.message执行DDL语句 ->
srw.do_sql调用用户出口 -> srw.reference动态地设置格式 ->...
分类:
其他好文 时间:
2014-06-02 20:00:34
阅读次数:
332
VirtualBox 3.2.10 gives me the following error
message when booting Ubuntu 10.10:-iix4_smbus 0000.00.07.0: SMBus base address
uninitialized - upgrade ...
分类:
其他好文 时间:
2014-06-02 16:44:03
阅读次数:
234
2014-05-31 BaoXinjian In Capgemini1. Workflow
的组成部分:
Lookup/Attribute/Message/Notification/Function/ProcessAttributeNotificationFunctionMessageLookup
...
分类:
其他好文 时间:
2014-06-02 16:40:32
阅读次数:
351
【题目】
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
For example,
Given encoded ...
分类:
其他好文 时间:
2014-06-01 08:59:37
阅读次数:
258
我们通过nio学习了Reactor模式,但是在java7中又出现了NIO.2,新的异步框架出来了,在上节中的服务端视线中看不到Reactor的影子了,但是Netty in action中写到:But notice that NIO.2 handles threading and the creation of the so-called event loop for you.所以模式还是没变,只是封装了而已!那让我们来分解下AIO(NIO.2)的封装吧!...
分类:
其他好文 时间:
2014-06-01 01:40:11
阅读次数:
388
C#中委托(delegate)是一种安全地封装方法的类型,委托是面向对象的、类型安全的。
使用委托的步骤: 1、声明委托public delegate void DelegateHandler(string message); 2、定义委托方法//
Create a method for ...
分类:
其他好文 时间:
2014-05-31 20:25:20
阅读次数:
274