I'm researching how to do In App purchasing using the iPhone SDK. Is there any open source code out there regarding this? Both client-side and server side? Apples docs are great but nothing is better than already functioning code to help the learning curve.
I am not looking for http://urbanairship.com . I'm looking for server code I cou...
i am having rootview controller in my navigation controlller and i want to add a image to navigation bar by hiding that and i want to place a back button on it,and bottom tool bar also i should able to add image and i need to place two buttons upon it,....
any suggestions appreciated...
Thanks in advance
...
I have an app that is crashing on the iPhone, but only when it launched via Xcode.
I can see in the iPhone console log that the app receives a memory warning, and then there are some strange events like these:
Sun Jul 11 00:03:43 Matts-iPhone com.apple.launchd[1] (UIKitApplication:com.mycom.myapp[0x3f60][5591]) <Notice>: (UIKitApplicat...
What differences have you seen when running an OpenGL ES based iPhone game on a device using an SGX chip... when the game was originally developed for a device using an MBX chip?
...
I've already got this data, which was pretty simple:
NSInteger numWeeks = ...;
NSInteger weekdayOfDateA = ...; // i.e. 1 for Sunday
NSInteger weekdayOfDateB = ...; // i.e. 6 for Friday
Just from the logical point of view, I could safely assume that every week in numWeeks has got one Sunday, right?
So numWeeks represents already my nu...
I'd like to design a password input screen and I'd like the "unlock device" interface. How to implement it in iphone SDK? Any sample code? I can't find the four square box that in IB. Shall I build it my own?
...
Example: I have a scale between 1 and 7. When I get a value like 8, I want it to be wrapped on that scale so it's converted to 1. More examples:
1 results in 1
5 results in 5
7 results in 7
8 results in 1
9 results in 2
10 results in 3
11 results in 4
12 results in 5
13 results in 6
14 results in 7
15 results in 1
16 results in 2
and...
Can some explain the retain cycles problem with a sample program?
...
Hi folks,
I'm using the following command in order to convert .avi video files
ffmpeg -i -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 320×240 -vcodec libx264 -b 96k -flags +loop -cmp +chroma -partitions +parti4×4+partp8×8+partb8×8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 ...
Hi Friends,
When we need to release an object,where to do it, either at the dealloc method or in the ViewDidUnload for a viewController? which would be better?
I think that viewDidUnload would do better, because once the view controller is unloaded the objects would be released. And in the dealloc case, from the documentation
When...
I'm in the process of creating a 2D game in OpenGL ES for the iPhone. I'm calling my game loop using NSTimer at an interval of 0.002 (60 fps) with repeats set to 'NO' (I'm running the NSTimer again from within the function as recommended):
-(void)gameLoop:(id)sender {
double currTime=(double)CACurrentMediaTime();
m_FPS_framesTh...
Hi Friends,
Consider I have a property named sampleObject.
In dealloc method, which should be the best way to manage memory?
Option 1:
self.sampleObject = nil; //This will release the sampleObject and set it to nil
This is equivalent to
[sampleObject release];
sampleObject = nil;
Option 2:
Explicitly releasing an object and ...
I have an idea for a pretty unusual alarm clock fir the iPhone. But as of now I have some thoughts on how to actually implement this. First off: forgetting about background services for now, how would I do the actual timer that fires the alarm etc? A separate thread? Or does the SDK include any nice alarm features I missed? Of cause I ne...
A web service provides data in the form of a plist. After the download, I have all of the data in an NSData object, which I want to convert to an NSDictionary. Right now the only way I know of to do that without parsing it by hand (yuck) is this:
static NSString *fileName = @"tempFile";
[data writeToFile: fileName atomically: NO];
NSD...
Hello,
I'm looking for the answer to my question but it's quite difficult for me. I would like to keep connected to the server in background sending location of the iphone with ios4.
I`m really sad because I think that multitasking of apple is not real multitasking, in fact they only keep the state of the app but they don't allow it to...
I've using the SpeakHere audio classes in an App I'm creating that must Play & Record simultaneously.
I'm using the newest SDK with a 3.2 device target in a universal app build (targeting iPad & iPhone).
The app plays streaming movies using MPMoviePlayerController and Records audio simultaneously.
This works 100% perfectly on an iPhon...
i am using this in my view didlod
[self.navigationController setNavigationBarHidden:YES];
it hides when applicationn launches but when i navigate to next screen and come back to main view is not hide it navigation bar...
why is it like that?
should i add any thing ?
....
...
This has been driving me crazy and I have searched the web but cannot find an answer. Is it possible to set the simulator to run at 100% all of the time?
Every time I run it, it defaults to 50 percent ant it is driving me crazy! Any help is greatly appreciated. Thanks
Geo...
...
I'm pretty sure that due to the Application Sandbox, none of this is possible, but...
I am working on an application that operates on text that the user inputs. Aside from forcing the user to copy and paste from another application or type in text, what other options exist for getting text? To be more specific:
Is there any way to get...
I see in the documentation that UISwipeGestureRecognizer is available in Iphone OS 3.2 and later. I was planning to use this to detect swipe gestures in my Application. What would be the consequences of running my application in an older OS say 3.1.3 if I do implement UISwipeGestureRecognizer?
...