iphone

Embedding html5 <audio> in a mobilesafari webapp. is it possible to load an image in place of the quicktime logo in the modal player?

I haven't be able to find a resource explaining if this is possible at all. The apple documentation found here http://developer.apple.com/safari/library/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/AudioandVideoTagBasics/AudioandVideoTagBasics.html#//apple_ref/doc/uid/TP40009523-CH2-SW1 ...doesn't mention such feature...

Why does my TTTableViewController not appear

I have an application which contains a scrollview with two subviews (to scroll left and right between them) Both views appear correctly and scrolling between the views worked fine. Now I want to change the first view to be a TTTableView (courtesy of Three20) but when I use the class 'TableControlsTestController' from the TTCatalog appl...

iPhone UIButton won't disable after setting enabled = FALSE

I'm doing the HelloPoly example from the Stanford class and trying to disable the increase/decrease buttons when appropriate #import <Foundation/Foundation.h> #import "PolygonShape.h" @interface Controller : NSObject { IBOutlet UIButton *decreaseButton; IBOutlet UIButton *increaseButton; IBOutlet UILabel *numberOfSidesLabel...

Can you check for app update within your app?

Is it possible to check for an app update within your app, such that when an update is available, your app will prompt the user to download the update on startup? ...

Should I really use a UITableView in this situation?

Imagine you have a view like this: At the top, there is an UISegmentedControl with two segments. It functions like a tab. Pressing one segment will activate this particular content below that UISegmentedControl. Below the UISegmentedControl are some switches. These modify the way how the content should be rendered. And finally, below...

Transform/redraw view after pinch zoom on x-axis

My setup. UIScrollView (scrollView) - UIView (contentView) - UIView (subView) I have managed to do so I can zoom contentView only on the x-axis. The problem is that subView is containing a graph. When contentView is zoomed and transformed the graph gets unsharp and distorded since the scaling only effect the x-axis. What I need help...

Should I move big data blobs in JSON or in separate binary connection?

QUESTION: Is it better to send large data blobs in JSON for simplicity, or send them as binary data over a separate connection? If the former, can you offer tips on how to optimize the JSON to minimize size? If the latter, is it worth it to logically connect the JSON data to the binary data using an identifier that appears in both,...

iPhone stream programming (CFStream) Hello World

Hello, I am currently trying to send a Hello World from my iPhone to a remote computer running a working server (tested by telnet on iPhone). Here is my code : #import "client.h" @implementation client - (client*) client:init { self = [super init]; [self connect]; return self; } - (void)connect { CFWriteStreamRef writeSt...

Invalid Entitlement.plist for my iphone?

Hi, i m sending .ipa file and ad-hoc provisional profile to my friend for installing my application in his iphone through itunes of windowsXP But it shows invalid entitlement.plist for his iphone. please reply me as soon as possible, And i also does not know about importance of entitlement.plist file. Thanks in advance for sending me ans...

How to reverse an audio samples?

How can i reverse an audio samples with iphone sdk? I'll try to make a "dj scratch" effect. I'm talking about speeding up and slowing down and reversing the audio samples in real time. ...

Synthetic click doesn't switch application's menu bar (Mac OS X)

Hi. I'm developing some sort of air mouse application for iPhone platform. This applications connects to one computer service which generates mouse events on Mac OS X. I'm generating this events with CGEventCreateMouseEvent() and CGEventPost(). But I've encountered one problem. Let's say you are using Safari and then you click on free de...

Embedded applications, similar to iAd, on Iphone OS

Apple just announced the iAd platform as part of iPhone OS 4. It essentially is an embedded application with a unified interface where you close the embedded application using a small x in the corner. This is obviously a nice experience for users, that could be used by other advertising platforms or to provide an embedded application s...

Running a Ruby interpreter on iPad

I'll be taking a trip soon with my iPad, without my laptop. I'd like to continue to tinker with Ruby while I'm on the road. I have an iPhone developer program membership, and I'm not interested in submitting this stuff to the app store. I found the shinycocos project, which appears to embed a Ruby interpreter in an app. But I can't g...

iPhone SDK backwards Building?

With the imminent release of iPhone_OS_4 is there a way I can install that version and still build for the current 3.2 release? Or do I need to install OS_4 as a separate install and do all my development on the 3.2 release? cheers gary. ...

self.clearsSelectionOnViewWillAppear will not compile

This bit of code comes with new classes that are subclasses of UITableViewController... - (void)viewDidLoad { [super viewDidLoad]; // Uncomment the following line to preserve selection between presentations. self.clearsSelectionOnViewWillAppear = NO; // Uncomment the following line to display an Edit button in the navi...

NSString integerValue returns a number in hex

NSString *x = @"12345"; NSInteger nsint = [x integerValue]; NSLog(@"%x", nsint); Prints 3039. intValue has the same result. Any idea how I can get the actual decimal value out of that? ...

iPhone - Is it ok to override UITableViewCell setSelected:animated

I am drawing custom UITableViewCells. My cells are opaque and are completely drawn in the drawRect of the cell to help with performance. I want to handle the look of a selected cell myself. If I don't, then the contents of my cell is covered up by the selectedBackgroundView that is added. Is it common or acceptable to override the se...

Force scope bar below UISearchBar

I have a UISearchBar and UISearchDisplayController, everything works great but my scope selector displays beside the text field instead of below it. I know that this is the expected action when the device is in landscape, but since I have the UISearchBar in the master view of a UISplitViewController it ends up looking like this http://cl...

Adding a button inside an image.

CGRect frame = CGRectMake(round((self.view.bounds.size.width - kImageWidth) / 2.0), kTopPlacement, kImageWidth, kImageHeight); self.containerView = [[[UIView alloc] initWithFrame:frame] autorelease]; [self.view addSubview:self.containerView]; // create the initial image view frame = CGRectMake(0.0, ...

Are C/C++/ObjC/JS Apple's only allowed langauges for iPhone development?

According to this post on Daring Fireball a new iPhone SDK Agreement release in conjunction with the iPhone OS 4.0 announcement today specifically bans any iPhone application not implemented in C, C++ Objective-C or JavaScript. The clear impact here is to the wide array of programs written in languages other than those. Is that your rea...