iphone

MGTwitterEngine and TableView

I sorta understand better how what the MGTwitterEngine returns....I thought. But i'm still doing something wrong to get it into my table view. This is what I have in my cellforrowatindexpath method: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [self.ta...

How to simplify in app Application Settings management?

I'm sure every cocoa-touch programmer had to face this: I know Apple would like every application to place their settings in the Settings app. But it's quite limiting in what it offers, in terms of customization. Also, it's better to place some settings within the app, as they change frequently. In such cases, the developer has to implem...

How to display a list of Wifi-Networks in an iPhone app?

I found some private (undocumented) APIs but Apple does not allow apps to use private frameworks. So does anyone know how to do this using Apple official packages? like: when youtube app prompts you to the push notification: "Select a Wi-fi network" Thanks in advance. ...

Unexplained gap above UITableView (between UITableView and TopBar)

I'm adding my first UITableView and it draws in an unexpected manner. There's a gap (same size as topBar?) between the top of the UITableView and the topBar (referring to the line with the battery indicator). #import "SettingsController.h" UIView *settingsView; UINavigationController *navigationController; SettingsController *root...

I need to add button to keyboard like following picture

image is at following location http://www.freeimagehosting.net/uploads/e50107df44.jpg please help me. i will be thank full to you. ...

Storing a C struct in CFMutableDictionary

Since there is no counterpart to NSValue in Core Foundation, how are we supposed to store C structs in a CFMutableDictionary? ...

iPhone UILabel sizeWithFont:

I'm trying to measure the visual size of a NSString that takes into account the number of lines I can render. However, sizeWithFont doesn't take into account numberOfLines property? So my layout algorithm positions everything lower than they actually need to be. _price = [[UILabel alloc] init]; _price.text = myPriceValue; _price.lineBre...

How to control placement of paste menu in a UITextView in iPhone SDK

I have a UITextView placed just below a view containing an ad and when the user tries to paste in text the paste menu overlays the ad which is just above the insertion point. I don't want to encourage accidental clicks so I'm looking for a way to make the menu display below the insertion point instead of above it. Or maybe there's a way ...

Upload and download data from server with Cocoa Touch?

How can I upload/download data from a server in Cocoa Touch. Here's what I have so far... -(void)uploadSchedule:(id)sender { NSData *content = [NSData dataWithContentsOfFile:self.dataFilePath]; NSString *stuff = [[NSString alloc] initWithData:content encoding:NSASCIIStringEncoding]; NSURL *url = [NSURL URLWithString:@"http://thetis....

How do I set a value in Objective C for an iPhone app?

I'm very new at Objective C and developing for the iPhone so I apologize if this is an easy answer I've tried searching Google for going on 3 days now and bought iPhone Development for Dummies and no luck on something like this. Essentially what I would like to do is play a sound when a button is pressed and then I would like to add 1 t...

How to trace out all messages sent to a particular class or instance in Objective-C?

I would like to trace out all messages sent by the Objective-C runtime to a particular class, say UITableView (or a particular instance) so I can better understand the inner workings of some classes. Is there a way to do this? Another use case is to trace out all delegate methods that are being called (say UITableViewDelegate methods) ...

What is the setup proceedure for an AUConverter for use in an Core Audio AUGraph

I want to convert from pcm 44100khz 16bit signed 2 channel interleaved (packed) format to 44100khz floats 2 channel non-interleaved (2 buffers) format for use in an AUGraph. I have been messing with it for a few days. whats the best way to set up an AUConverter to do this ...

Filter Photos from photo library

i have to save some photos in photo library using UIImagePickerController and save that name in my database. at the same way i need to view that saved photos. i dont want 2 see all photos in photo library . which is the better way? please post some samples. ...

OpenGL Layer on top of Video on iPhone?

Hi there. I am trying to display a fullscreen video on the iPhone and overlay it with an OpenGL ES view. So basically, I want a video playing in the background, while there are OpenGL graphics being drawn on top of it. How do I achieve this and is it even possible? Thanks for your help! Florian ...

Need help with UIText

Hi, I'm trying to make it so that the text displays like Alabama Alaska Arkansas and so on. I mostly just need help on how to make it go to the next line of text lblText.text = @"Alabama:"; i tried doing @"Alabama:" @"alaska:"; but it didn't work. Any thoughts? ...

type of item for in app purchase

how to get info about an product for in app purchase like wether item is consumable or non consumable etc ? SKProduct give me only productidentifier ,price , title and localized title etc ? ...

TAR encode/decode library for iPhone (ideally cocoa)

Does anyone know of any library/code that will enable me to encode and decode .tar formatted data - that I can use in my iPhone project (preferably cocoa) Thanks in advance Craig UPDATE: I've taken a look at the suggested libraries and come to the conclusion that they are making waaaay to much of the problem - so I'm developing the co...

iPhone 3GS Simulator

I want to test the Voice Control feature of iPhone 3GS through the simulator. But I don't seem to get the simulator for 3GS. Where can I get one..? ...

CGContext Optimization

Hi everyone I have a small run speed problem. On load, I generate a CGMutablePath containing at least 1000 points. I want to scroll this path on the screen, so I use this kind of code : -(void) drawRect:(CGRect)rect { /* Here, I have a timer calling drawRect 60 times per second. There's also code for the scale and currentT...

Image in UIScrollView moves offscreen before while zooming

I am working on a photo gallery iPhone app. Approach is fairly inspired from the ScrollingMadness code available on github. I have a scroll view which holds all my image views when in paging mode. When user zooms an image using pinch out gesture, I remove all the image views but the current one - and set the content offset to 0,0 (obvi...