iphone

Rich text editor library for iOS

Does somebody know a rich text editor (like NSTextView for Mac OS X) library for the iOS platform? ...

Access objects through Lua (iPhone SDK)

I'm trying to get to grips with how Lua works, and how it can be integrated into a project, like an Obj-C based iPhone game. I've got Lua's source integrated fine, and have managed to use a simple manager class to translate function calls written in a .lua file, to Obj-C methods in the project. I'm now a little stuck; I'm not sure how t...

cannot compile my iphone app under xcode

It says code sign error. What should I change maybe in plist to cancel this error ? The question here http://stackoverflow.com/questions/1549225/xcode-iphone-project-code-signing-error doesn't answer my problem: I don't want to run my app on my iphone just on SIMULATOR so I don't need to sign. In fact I have compiled successfully seve...

Terminating app due to uncaught exception 'NSInvalidArgumentException'

Hello, I am using ShareKit to allow the user to share their score on Twitter and Facebook in my iPhone app. However, it seems to crash shortly after sharing on either service. I get an console message which says: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString rangeOfString:options:...

Two pickers in a view -iphone app

I am using two UIPickers in a view. first picker has 3 components and second has one. but when I select items, it shows correct items from first picker but always return first item from second picker regardless of selected row. Please help. here is the code I am using. -(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerVi...

Handling many image files in scrollview on iPhone similar to photos app

So I've seen this question asked before and in fact I asked it last night but I thought I'd give it another go just to see if I could get any other unique views on the problem. The Problem — I have an app with a large number of uiimageviews (with image downloaded to disk) in a scrollview which of course has two large problems facing it:...

iPhone - What is the best way to create the physics for a game?

1- let's say there is a box on the screen and as soon as it gets hit by another box it suppose to move. How can i detect (getting hit) on my box object? Is it a good idea to use an nstimer which runs every 0.1 seconds and looking for the location of other objects around itself? 2- What is the best way to display simple 2d animations? ...

Drawing Routes with iPhone

Hi there, I am trying to make an iPhone application which can draw a path between two points (similar to Google Maps) but instead of the map i want to use any other image as a background, this path between the two points might not be straight and there might be multiple paths to get from one point to another then I want to draw the shor...

Deleting a CoreData object, then calling [tableView reloadData] causes a SIGABRT

Hi, I'm supporting deleting rows in a UIView that includes a tableView: - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { [self.fetchedResultsController.managedObjectContext ...

How can I pause/restart a loop in objective-c

Would like to execute some code in a loop, but I want to pause it while a uiscrollview is scrolling. I've created a BOOL named isScrolling that is set to "YES" in the scrollViewDidScroll method and is set to "NO" in the scrollViewDidEndDecelerating method. I'd like to put the loop in the scrollViewDidEndDecelerating method, but have i...

How to make this simple iPhone app: just launch Mail

Hello, I want to do a really simple iPhone app: when I start the app it will launch the Mail app. I found this: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://[email protected]"]]; But: - What kind of projet in xcode I have to create (view based application, windows based application) ? - Then where do I have t...

iPhone address book

Hey guys, Just a small question about accessing the iPhone address book - will this only give access to photos assigned to a contact or the whole iPhone photo gallery? Thanks. ...

set array empty

I have a clear history button which clears the data in plist. Now, loading is fine; I load it to an array. Can I just use: self.dataClear = NULL; and save back the array to plist to clear it? So that I can use if([self.dataClear count] == 0)//if plist is empty to check? ...

Twitter integration iPhone app?

Hello, I am looking for a simple method to allow the user to share their score using Twitter. Originally I just opened a Twitter share URL in Mobile Safari to make the Tweet, however I can't seem to find a valid Twitter share URL. What would you suggest? Thanks. ...

iphone - retrieving information from the internet (rss alternative?)

(Very) basically my app is just a load of information collected from the internet - eg: someone can log into an admin panel on a website and update their app from there. The information gets put into a mysql database. The way I thought about going about this was to use an RSS feed - it works for blog/twitter feeds, so I thought why not ...

How do I move a ball in a fixed circular/eclipse path for iPhone app

I need to move a ball in a circular path. Any guide or tutorials that I can refer to on how do I go about doing it? Thank you. ...

Is someone willing to look at my (very small) project on DropBox and give me a hint on my IB connections?

Hello, I am working on a very small (one view) iPhone app (iOS 4.0.2 on Xcode 3.2.3) and I think that I am missing something in how I have made my IBOutlet and IBAction connections in IB. I am hoping that one (or several) of you kind folks out in the ether will be willing to connect to my dropbox and dl the project and give me a hint as...

UITableView is redrawing only some of custom cells

Hi guys, For quite a bit of time I am struggled with a kinda stupid problem. Hope someone can give me a hand. UITableView is being implemented. The UITableViewCell is drawn in .xib and connected to a textEditCell property. in the main program there is a simple code: - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowA...

observeValueForKeyPath with UIPopoverController iphone map sdk

I'm adding an observer to my annotationviews with the following code - (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views { for (MKAnnotationView *anAnnotationView in views) { //[anAnnotationView setCanShowCallout:YES]; [anAnnotationView addObserver:self forKeyPath:@"...

Somehow my singleton properties are getting released.

I have a singleton object called PoolManager that loads and saves some data in a plist. Throughout my program when something needs to know about my pool, it asks the [PoolManager sharedPoolManager] for it's properties. I have a single view that's responsible for setting these properties and all others just read from it. It was all wor...