iphone

TableView with scroll and swipe

Hello, I have a TableView in which I can scroll to view all the rows. But I can also swipe all of those rows (when I swipe, it display some options for the row). Currently, I'm adding a swipe event to the table view. When it's triggered, I find the appropriate row with it's index. And I do what I gotta do. On the SDK it works well. On...

iPhone, Why am I getting a memory leak and how do i fix it ?

I must be getting a memory leak, I'm calling a graph library view and the view shows the first time I use this button method, but the second time the app crashes, with no real error message, that I can see. -(IBAction)graphNavButtonPressed { UIViewController *vc = [[GraphController alloc] init]; [vc setModalTransitionStyle:U...

How do I draw a line with a specific texture, like chalk?

How would I draw features with a texture in an iPhone application? Basically what I want to do is to draw a line that has a specific texture, like a line of chalk. ...

three20 right align

is there a way to right align div tag inside a styled text item in three 20 on iphone? I have accomplished it using the following: return [TTBoxStyle styleWithMargin:UIEdgeInsetsMake(-20, 230, 5, 5) padding:UIEdgeInsetsMake(0, 0, 0, 0) minSize:CGSizeMake(20, 20) position:TTPositionStatic next:nil]; however, this only works in portr...

How to launch a TTTableView based view with TTLauncherView ?

Hi again, I'm very newbie with Three20. I'm trying to make an TTLauncherView based interface, without success for now. My LauncherView contains a button, mapped to an URL. When I click on this button, I want a TTTableView based to be displayed on screen. But I have nothing. Here is a piece of my AppDelegate code : [map from:@"tt://ra...

using cosine and sin to find missing angles

how can i use cosine and sine in my iphone application to find the missing value of angles? if i have a float that contains a number, how can i get the cosine of that angle. i used this example however it gave me errors double x1float = (cos(pfloat)); ...

iPhone add Icon to app

Hi, i have a icon (57x57 pixels) which i copyied to recources and addet it to info.plist but i don't see it on iPhone. Can someone help me? ...

Hello please let me about learning iphone(i need best book for beginers)...

Hi I am new to Objective C and iphone developments, please specify me a way to learn about iphone developments please help... Regards GuruPrasad R Gujjar. ...

Iphone terminal commands.

Hi guys, I`m working on school project and I want to use function system(""). For example system("ping www.google.com"). Is this function allowed by Apple ? It is possible to pass in App Store ? Thanx for any answer. ...

MPMoviePlayerController iOS 3 to 4, get current time

Hi everyone ! I need to use a property defined in MPMoviePlayerController called currentTime (in iOS 3). It seems to be a private property but not in iOS 4, which is now called currentPlaybackTime. I want my app to be launched starting iOS 3.0. So I wrote this : @implementation MPMoviePlayerController(extended) -(double)time { ...

Serious Application Error in Core Data with fetchedResultsContainer

Hi there, I get the following error when trying to add a record: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. The index 0 is invalid with userInfo (null) And that's it. I put breakpoi...

What is the fastest way to sort a lot of locations on distance?

I want to sort lots of locations (waypoints) on their distance from the current location. The current location is, of course, a moving target, so for every location update, recomputing the distance for every location is necessary. But only recomputing for close-by locations would by enough. I currently use core-data, and store the dista...

[NSNull isEqualToString]

My program is crashing as a result of the runtime sending isEqualToString: to a NSNull object. I cannot find where this NSNull is coming from; I never explicitly create one. I also can't find at all who or what is calling isEqualToString. My understanding is that NSNull is an objected used only to get around the fact that you cannot add...

How to send xml or image data from iphone to a rails 3 server ?

Hi guys, I am developing a hybrid app (rails 3 + iPhone) and I want to send a number of large strings and images to a rails 3 server. I want to do a POST method from iPhone. Can someone help me on how to do this ? since in this case there will be no form in the views how should I accept the data ? Thanks in advance ...

UITebleView self.editButtonItem

I have a UITableView that works properly with the "self.editButtonItem". The problem that I am chasing is the following: If I put the table in edit mode, switch to another screen of my app and then go back to the table, I can set the table to DON'T be anymore in edit mode, but the button persist in the "edit" state while I would like it...

sqlite database disk image malformed on iPhone SDK

I'm having an issue with a new application on the iPhone SDK using SQLite as the DB backend. Occasionally, my app will stop loading data to my UITableViews and after downloading the device DB via the Organizer I can access the SQLite DB via the command line. I can query certain tables fine but not others without getting an "SQL error: ...

iPhone "go to background" versus "quit" confusion

First some background; for the tl;dr version skip to "the problem" below. Background This is really more of a user interface question than a technical one, but I think it fits better here than on the UI site anyway. Since iOS (iPhone OS) 4.0 apps can run in the background, and actually always does so instead of quitting. Quitting an a...

Dim iPhone screen

Hey, I'm working on an application where it may be used in a dark area and the brightness is required to be lowered. I wanted to put this into the application, and thought that I could add a UIView with a black bg color and change the alpha, but this gets in the way of the user interaction. Does anyone have an idea on how to do this wi...

Uitextview inside uitableview

I am trying to place a uitextview into one of the cell in a uitable view.No the problem is that after typing a lot of line ,i cannot scroll the textview to edit the first line.While doing this the tableview scrolls and keyboard becomes hide.Looking for a solution. Thanks in advance ...

EXC_BAD_ACCESS signal received

I am getting a EXC_BAD_ACCESS signal when calling the following line: self.distance = [NSNumber numberWithDouble:[currentLocation distanceFromLocation: self.location]]; This is only happening in iOS 3.2 for iPad, I know this is a memory issue but i can't seem to see what is wrong with the above line? edit: here is the full method: ...