iphone

iPhone: Wrapping text around image.

From what I have gathered, wrapping text around an image is possible using a UIWebView displaying a local html file. (I have a local html file called index.html) The following code inserted in the viewDidLoad method seems to crash the application with error. *** Terminating app due to uncaught exception 'NSInvalidArgumentException' Thi...

how to sort NSMutableArray

Possible Duplicate: How to sort an NSMutableArray with custom objects in it? Having trouble with something basic (I think). I have an NSMutable array that I populate with "workout" objects. The "startDate" method returns an NSDate - and I'd like to sort the array off this. The NSSortDescriptor *sortByDate line terminates du...

MonoTouch 3.0.6 supports iPhone OS 4 what about legal issues

Now MonoTouch supports iPhone OS 4 with current 3.0.6 version but Apple banned all programming languages beside C/C++/Objective-C. So it is confusing why Novell supports iPhone OS 4 if it is banned? Is there any exception for MonoTouch we don't know yet? I am aware of previous stackoverflow question Is MonoTouch now banned on the iPhone?...

Can't move my character! Please HELP!

I am trying to make a UIImageView move when I tap a button. I have set a UIIAction to start an NSTimer. When tap the button, the character(UIImageView) moves fine. When I tap the same button again, the character speeds up and so forth so eventually he is moving a billion mph. How do I solve this? Here is the code: (void)animateCha...

What exactly does reloadData call?

When calling reloadData on a UITableView what methods are actually invoked? [tableView reloadData]; ...

Is this the correct way to reloadData on a UITableView?

I am trying to append objects to my data source and then reload the table. Is this the correct way of approaching it? self.items is my datasource //Copy current items self.itemsCopy = [self.items mutableCopy];//[[NSMutableArray alloc] initWithArray:self.items copyItems:NO]; NSLog(@"Copy Size before append: %d",[itemsCo...

DIRAC2 for real time pitch correction and autotune?

Has anyone implemented the DIRAC2 library from http://www.dspdimension.com/technology-licensing/dirac2-iphone/ for real time pitch correction on the iPhone? The library doesn't appear to support real time processing but perhaps someone has done it? Thx ...

iPhone - UITableViewCell - Change NIB CustomCell by another NIB CustomCell when select a row ??

Hi. I have one UITableView with a custom cell loaded from a nib file, it works fine. When I select a row(named CustomCell1), It is possible to load another CustomCell2 and replace CustomCell1 with it? I guess I have to use didSelectRowAtIndexPath() but I don't know how. Any ideas? Thanks. ...

MKMapView: Bring some annotation views above others?

I have an MKAnnotationView subclass called ImageAnnotationView. It basically displays an image on the map. I want the regular MKAnnotationView views (the default pins) to appear above the ImageAnnotationView views. This is what I've tried so far but it doesn't seem to work: - (void)mapView:(MKMapView *)imapView didAddAnnotationViews:...

how to build packages for iphone?

Hi, I am intersted in developing packages for iphone, which I can use directly in my iphone applications when required. can anyone help me with some good links. Thanks, ...

CSS sprites messed up on iphone

I've noticed css sprites seem to show 1 more pixel than they should when viewing them on the iphone. My site works perfectly fine on all major desktop browsers on mac and PC. But when I view it on the iphone you can see 1 pixel of the adjacent sprite image. Anyone encounter this before? Any suggestions on how to cleanly fix this? I k...

Is there any reason why someone would want to create an Core Data model programmatically?

I wonder in which cases it would be good to make an NSManagedObjectModel completely programmatically, with NSEntityDescription instances and all this stuff. I'm that kind of person who prefers to code programmatically, rejecting Interface Builder. But when it comes to Core Data, I have a hard time figuring out why I should kill my time ...

UIWebView loaded from another class, where to put delegate methods?

Hey. I'm loading in a UIWebView from another class, and that works great. But now I need to know how I can implement these delegate methods: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType // AND: - (void)alertView:(UIAlertView *)alertView c...

Adding a ToolBar with a TTNavigator

Hi everyone, I didn't anywhere the solution to my problem. Basically, I just want to add a ToolBar while using TTNavigator for managing the navigation of my application. The ToolBar is the same one can have with UINavigationController : self.navigationController.toolbarHidden = NO; I don't think it's difficult to set up :) Hope someon...

Pushing a UIViewController doesn't work with connections.

Alright, in my rootViewController, I am able to push another viewController that I defined myself onto the screen. However, when I make any connections between that viewController and its own .h file, the program just hangs and crashes, giving me this error: 2010-06-04 15:36:13.944 pooldocfinal[11971:20b] * Terminating app due to uncaug...

iphone in-app purchases not working after rejection

I recently had an issue with my in-app purchases, so had them rejected. I found that upon creating new ones and approving them, I am getting no products back from my SKProductsRequest. Do new in-app purchases require some delay to be updated on their servers or is there some common reason that they stop working when an app is rejected?...

Create a bubble effect on a grid OpenGL-ES

Hi there. I have created a grid with 40 x 40 vertex3D (small but useful) I can pick a single vertex out of that grid by simply calling a function with the position array[X][Y], And therefore neighbors too. How can I raise up neighbor vertex Z value so they kinda look like a bubble or sphere kind of thingy? My first tough was to use: N...

iphone: How can I remove the red colors from an image? (RGB colors)

Let's say I have an UIImageView, and I wanna show only blue and green colore from it, (RGB colors). Like in Photoshop, I can choose what colors to show, red, blue, and green, so in the image to delete the red color. So how can I do it? I really new in Objective-c and all :) ...

YouTube javascript API accessible via UIWebView on iPad?

I can't seem to get this working using stringByEvaluatingJavascriptFromString. Apparently the webview does something peculiar to youtube videos (due to the YouTubePlugIn.webplugin perhaps?) and the javascript API is unusable. The problem I'm having: How do I pause\stop a video when the user navigates away from a UIWebView with an embedd...

UIWebView - Autoresize so that no scrolling (in the webView itself) is needed

Hey. I'm trying to use a UIWebView for displaying content higher than the screen of the iPhone, without needing to scroll in the webView itself. The webView is placed under a UIScrollView in IB with some other objects that I want the scrollView to scroll up and down with the UIWebView. I know you can do this with a UITextView (CGRect ...