I'm thinking of implementing in-app purchases for my iphone app. My question is whether or not I can implement a credit system. I'd like to allow users of the app to purchase various quantities of credits. The credits would then be stored in a DB for that user's account. The user can then visit a dedicated website for the app and use the...
Hi there,
I'm trying to save a multiple masked image to disk.
The code below explains How I do it. The maskImagewithStroke masks 2 times a picture : first time to provide an irregular stroke to a texture then I'm remasking it with a bigger mask to get a stroke from it. It's the bast way I found to get an irregular stroke around my text...
I have a UIView that I set up to respond to pinch gestures and change its size, except, once you enlarge it and then try and pinch it again, it jumps to its original size (which just so happens to be 100x200). Here is the code:
@implementation ChartAxisView
- (id)initWithFrame:(CGRect)frame {
if ((self = [super initWithFrame:frame...
Lets say that I want to temporarily change the frame of a view (for eg move it 10px to the right - probably in connection with highlighting a change).
I assumed the psuedo code would be something like
self.someView.frame.origin.x += 10.0f;
But this gives me an error of
lvalue required as left operand of assignment
So what I do ins...
Hi, my subview (childView) has a smaller width than the parent view.
[parentView addSubview:childView];
I'm wondering how I might be able to add this child centered horizontally (vertically I want it to remain the same) in the parent view. I'd like to do this in code. Right now it's adding but to the top left corner of the parent. an...
I'm trying to code part of a program that allows users to set up one or more alarms that will remind them to launch the application and do something at certain times of day.
I basically understand that I need to use local notifications, but I'm having a hard time coming up with the best way to represent a time of day in my application s...
Is there any way to access the voicemail from the SDK. As I know this cannot be done. At least in the new SDK have they given any control over it?
...
Hello,
I apologize in advance if this has been addressed, but I have not found a specific answer as of yet.
First, I am trying to use a C library in an iPhone/Cocoa touch app. It compiles fine as a plain C project and as a plain Foundation project (using X-code). My problems is this: The library uses a dictionary file which is called d...
I'm trying to add a category to AVAudioPlayer but I keep getting the error "Cannot find interface declaration for 'AVAudioPlayer'".
AVAudioPlayer+Fade.h
#import <AVFoundation/AVFoundation.h>
@interface AVAudioPlayer (Fade)
- (void)fadeToVolume:(CGFloat)volume;
@end
AVAudioPlayer+Fade.m
@implementation AVAudioPlayer (Fade)
- (voi...
I am looking to replicate the image gallery view that shows thumbnails, like in the photos app on the iPhone.
Is there a view controller or any examples that anyone can provide to replicate this?
...
I have the following json:
{
"response": {
"status": 200
},
"user": {
"flex_meta": {
"layout": "[{\"windows\":[{\"type\":\"stream\",\"width\":260,\"x\":268,\"height\":763,\"y\":0,\"relatedDataObject\":{\"name\":\"watch\",\"id\":3190},\"arg\":\"watchlist:3190\"},{\"type\":\"rss\",\"width\":260,\"x...
I'm working on app an where there's a view in a zoomable UIScrollView. When the user zooms in or out, I redraw the view that's in the UIScrollView to be nice and sharp. That view has a background image that I draw with CGContextDrawTiledImage.
I noticed that memory usage grows every time I switch to a new zoom level. It looks like CGCon...
Is there a way to navigate within a webview using paging - like UIScrollView's 'pagingEnabled'?
There are several suggestions out there about setting this parameter on UIWebViews internal scrollview,
but this solution does not work e.g. in the case that you set the webcontent offset using javascript.
In this case, the first tap on the s...
Hey all,
Anyone have any idea how to prevent an app from letting more than five touches be added? Maybe someone who has a better knowledge of the touches system can explain it to me as well.
Basically, my app has 8 pushable buttons on screen, and up to 5 should be able to be pressed. If more than 5 fingers are present, the ipod touch d...
Previously I've used the tap Detecting Window technique to detect taps in a UIWebView, but now I've tried to use gesture recognizers instead. The following code is in the viewDidLoad method of a view controller, which has a single UIWebView. This code compiles fine, but the handleTap method is never called. This seems like it should be ...
Hi,
Is there any any way to add a TextView to application settings in Iphone. According to Apple's documentation, I can only find TextField, but not TextView. I have tried several key values like PSTextViewSpecifier, but no luck. Any help is greatly appreciated.
...
I see this log in the console when I run my app:
CALayer position contains NaN: [nan -0.5]
The app consists of a UITabar of which the first tab is a UINavController. In the NavController I'm launching the AddressBookPicker. In the Addressbook picker I'm only choosing to show phone numbers.
When I choose on a contact that has only email...
I'm looking for a better way to do this:
id key, value;
NSMutableDictionary dict;
[dict setObject:value forKey:[NSNumber numberWithInt:(int)key]]
That is, use an NSDictionary to map from address to object.
...
Hi
I need to place small gap between UITableViewCell, is there way that I can archive this?
thanks
Regards
sam.
...
I have a simple query that I'd like cleared up by someone... Is it bad-practice to retain self?
I have a server request object that I'd like to make. I'd like to be able to use it in the following fashion:
ARequest *request = [ARequest request: someParam];
request.delegate = self;
[request begin];
In order for the object not to self ...