我有一个免费的应用程序,目前可在Apple AppStore上获得,其中有一个非消耗品设置,可用于应用程序内购买以启用高级功能.
我的客户现在决定他们想从AppStore中提取这个二进制文件并仅提交一个高级付费版本(删除IAP需求).
我的问题是:当我从AppStore中提取这个免费二进制文件时,IAP购买会继续为那些已经安装了免费二进制文件的用户工作吗?这些当前用户是否能够购买这种非消费品并恢复购买?
我试过在Apple开发者论坛上问过这个,但是像往常一样,没有得到回应.
提前致谢!
我正在研究SQLite,我编写了一个查询,它返回两个数组ItemsArray和CustomersIDArray:
ItemsArray
Element at Index 0 = Off White,
Element at Index 1 = Fan,
Element at Index 2 = Off White,
Element at Index 3 = Delux,
Element at Index 4 = Fan
CustomerIDArray
Element at Index 0 = 1,
Element at Index 1 = 2,
Element at Index 2 = 2,
Element at Index 3 = 3,
Element at Index 4 = 4
Run Code Online (Sandbox Code Playgroud)
我希望结果像Off White = 2(计数),Fan = 2(计数)和Delux = 1; 和结果数组,
Result Array
Element at Index 0 …Run Code Online (Sandbox Code Playgroud) 我正在尝试将类型的AudioUnit添加kAudioUnitSubType_Reverb2到一个AUGraph并且我得到一个-10868 (kAudioUnitErr_FormatNotSupported)支持的错误AUGraphInitialize.我的出发点是Apple的iPhoneMixerEQGraphTest示例应用程序,我基本上只是为混响添加了一个新的AudioUnit,但无法让它工作.
这是代码 -
- (void)initializeAUGraph
{
printf("initializeAUGraph\n");
AUNode outputNode;
AUNode eqNode;
AUNode mixerNode;
AUNode reverbNode;
printf("create client ASBD\n");
// client format audio goes into the mixer
mClientFormat.SetCanonical(2, true);
mClientFormat.mSampleRate = kGraphSampleRate;
mClientFormat.Print();
printf("create output ASBD\n");
// output format
mOutputFormat.SetAUCanonical(2, false);
mOutputFormat.mSampleRate = kGraphSampleRate;
mOutputFormat.Print();
OSStatus result = noErr;
// load up the audio data
[self performSelectorInBackground:@selector(loadFiles) withObject:nil];
printf("new AUGraph\n");
// create a new AUGraph
result = NewAUGraph(&mGraph);
if (result) { printf("NewAUGraph …Run Code Online (Sandbox Code Playgroud) 在不创建多个NSTimer实例的情况下,如何实现NSTimer以序列中的不同间隔触发特定或多个方法.例如method1(0.3秒),method2(0.5),method3(0.7)等.
如果有人可以请分享任何示例代码,我将不胜感激.
目标C中执行选择器的用途是什么?你可以告诉我执行选择器和响应选择器之间的区别吗?
我想将IB中菜单栏项的等效键设置为退格键(删除光标左侧),但由于某种原因,这似乎不起作用.我可以为它分配各种键,例如CMD + Backspace,或fn + Backspace(删除键,即从右删除),但是当我分配普通退格键时,它根本就不会注册.
我是否必须做一些不同的事情来使用退格键?
PS:我不想以任何其他方式处理密钥.它必须是等效的菜单项键.
编辑:我使用IB设置菜单项的等效键.我知道我以前说过,但有些人看不懂.我知道如何在IB中设置它,它适用于除退格键之外的所有内容.
当我尝试声明一个sqlite3对象时,我在下面的代码中遇到了编译错误."数据库"不是对象类型吗?为什么会发生这种情况,我该如何解决?
#import <Foundation/Foundation.h>
#import <sqlite3.h>
@interface BasicDao : NSObject
@property (nonatomic, retain) sqlite3 *database; //error : Property with 'retain (or strong)' attribute must be of object type
@end
Run Code Online (Sandbox Code Playgroud) 我一直在运行一个很好的Cocos2d教程来实现iAds并接近实现它(我从控制台获得iAd消息)......
我一直回到这个警告:
CCGLView *eaglView = [[CCDirector sharedDirector] openGLView];
Run Code Online (Sandbox Code Playgroud)
"找不到实例方法'-openGLView'......"
我认为这与从调用GLView到CCGLView(cocos2d)的转换有关...
它应该是如此简单,但我不能让它工作.
Json响应是([{"id":"1","x":"1","y":"2"},{"id":2,"x":"2","y": "4"}])
NSString *response = [request responseString];
//response is ([{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2", "y":"4"}])
SBJSON *parser = [[[SBJSON alloc] init] autorelease];
NSDictionary *jsonObject = [parser objectWithString:response error:NULL];
// jsonObject doesn't have any value here..Am I doing something wrong?
NSMutableArray Conversion = [jsonObject valueForKey:NULL];
//Even if I get the value of jsonObject. I don't know what to put for valueForKey here
Run Code Online (Sandbox Code Playgroud)
转换shoud有两个NSObjects ..每个都应该有
id:1 x:1 y:2
和
id:2 x:2 y:4
我正在研究POC,其中包括以下内容
现在,如果消息的DB插入失败,我希望JMS消息返回到队列,以便以后可以重新尝试.
使用我的以下配置它似乎不起作用.(即使插入数据库时出现故障,消息将从队列中删除.
任何指针或示例配置都会有所帮助.
<integration:channel id="jmsInChannel">
<integration:queue/>
</integration:channel>
<int-jms:message-driven-channel-adapter id="jmsIn"
transaction-manager="transactionManager"
connection-factory="sConnectionFactory"
destination-name="emsQueue"
acknowledge="client" channel="jmsInChannel"
extract-payload="false"/>
<integration:service-activator input-channel="jmsInChannel"
output-channel="fileNamesChannel" ref="handler" method="process" />
<bean id="handler" class="com.irebalpoc.integration.MessageProcessor">
<property name="jobHashTable" ref="jobsMapping" />
</bean>
Run Code Online (Sandbox Code Playgroud)