iphone

Rearranging rows in uitableview

I've an application in which each row contains an uiimageview and an uibutton. I have created them using custom cells, uitableviewcells. The button is to trigger the method, uiimagepickercontroller to pick an image from the library and show it in the imageview. I need that any user who uses the application can rearrange the rows as they ...

Asynchronous image load into TableView cell

Im trying to load a single image into the grouped table cell. I found a piece of code on the internet and modified it. Original code is using UIViews to display image, which is not what I need, however original code works of course. PLease help me to make this code work to display an image in a sigle cell for grouped tableview. My TableV...

MPMoviePlayerContentPreloadDidFinishNotification does not fire [iPhone]

I'm running into a problem with the MPMoviePlayerContentPreloadDidFinishNotification notification. I've regisered to recieve the MPMoviePlayerContentPreloadDidFinishNotification notification and MPMoviePlayerPlaybackDidFinishNotification but the first one never fires. Is this bug in Firmware OS 3.0 ? maybe fixed in 3.1 ? or ? Because my ...

value in the Table view is repeating after the 11th row.

I am beginner iphone developer I want created table in programatically. In the table we take more than 20 row. But i have some problem that after 11th row the same value repeated. plz help me with code and other method ...

Custom mapkit view zoom

I have mapkit view and other view as subview of map. I need to catch double click on other view and allow to move and zoom(by pinching) map view. How i can do it?I must to subclass of MKMapVeiw and override touchesBegan? @class GridOverlay; @interface MapView : MKMapView { GridOverlay *overlay;//This view must catch double click his t...

sqlite_bind_?(character) how to bind characters in sqlite?

Hi all, May be its a silly question but I am a bit confused in it, I want to bind a character into sqlite database (neither as varchar, nor as text but as character only) Hence we can not use sqlite3_bind_text(insertStmt, 1, @"A", -1, SQLITE_TRANSIENT); So should I use sqlite_bind_int(insertStmt,1,65); or there is a better way t...

Problem with Exit the application.

Hello All, Iam developing an application in which there is a AlertView which has 2 button saying "OK" "Cancel" by pressing OK button My application will exit and goto the home screen of iphone so i used exit(0) code, does apple allows to exit in this way or there is any other way to the exit from the application? Please suggest some sol...

connect Iphone with Facebook API

Hi I want to connect facebook API's with my IPhone. For this I have downloaded the FBConnect sdk and included the FBConnect group of FBConnect.xcodeproj in my application and then I have written the following code in FacebookAPPViewController.m - (void)viewDidLoad{ [super viewDidLoad]; session = [FBSession sessionForApplication:@"a31...

iPhone codesign Missing Resources

Hi, I'm trying to get my ad hoc build distributed but have started experiencing problems. It used to work up until around a week ago, but now ITunes gives an 0x8008017 error when I try to Sync. I've narrowed it down by using the iPhone Configuration Utility and then discovering the error seems to be coming from a failed code sign. I've...

mixing relase and debug static libraries in xcode iphone project

Hi, In my iPhone project, I use for Debug target one proprietary static library X (compiled in release mode). For the rest of my static libraries I have source files, so I can build them for relase and debug targets. When I execute my project (for debug target), after first call to function from library X, my program receives EXC_BA...

appending Two label texts?

hi, i want to append two label texts(which are in different colors) in One label.any help please? how can i do it? ...

Comparison of text color in UILabel with UIColor fails

I'm trying to compare the text colour in a UIlabel with a UIColor but the result is always false. The following code produces the result: color equal 1, 0 I expect both a and b to be equal to 1. Is there another way to do this compare? bool a,b; UIColor *myColor1, *myColor2; myColor1 = [UIColor redColor]; mainViewController.ti...

Convert unsigned char * to int * in Objective-C

I am trying to convert a unsigned char* to int * on in Objective-C on the iPhone. Is there any API that can help with the conversion? Here's my best attempt: -(BOOL)MyFunc:Version:(int *)nVer { unsigned char * uszVerSize; //trying to assign string to int nVer = uszVerSize[0] ; } ...

Is it possible to add a reminder to iPhone's calendar from another iPhone native app ?

Hello all, I have seen somewhere that you can't add a reminder to iPhone calender from another native application programatically . Is it true or false ? If false then how can we achieve that . If true then is there any other way of adding reminder to iPhone calendar or you can't do it all. ...

iPhone SDK Mapkit: How can I check if the user's location is in the same street/avenue as a given coordinate?

Hello. My iPhone App is an Application that shows users some POI (points of interest) in the MapView. I wanto to give the user the option to turn on a feature that would only highlight the POI's that are in the same street, avenue, route, etc as his. Is there a way to aproach this? Thanks a lot! ...

iPhone beta tester platforms

We are currently searching for platforms where we can find beta testers for iPhone apps. Does anyone have experience with iBetaTest? Which other platforms are available. Thx for your help Nicola ...

iPhone simulator failed to install the application

I have an account on a university computer network, and whenever i try to Build and Go with an application in Xcode, i get this error : Error from debugger: Failed to launch simulated application: iPhone Simulator failed to install the application The SDK is installed in /Developer as expected and i have created my project directory o...

TextField in UITableView

i m new to iphone ... trying this code but getting some error help me out.. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ ........//// some code ...........////////// CGRect frame = CGRectMake(5 ,10 , 320, 44); UITextField *txtField = [[UITextField alloc]initWithFrame...

A UIScrollView Doubt

I want a UIScrollView in which i have to paste 25 images of same size(256*256). The 13th picture should come in the centre,ie, when the app loades. Then when i swipe right, left, up or down it should scroll as normally. For doing this what should be the specifications of the UIScrollView,ie, 1.what should be its size 2.ContentViewSiz...

OpenGL ES on iPhone: timer-based painting problems, jitteryness

I have an OpenGL ES 1.1 project on iPhone, based heavily on the empty OpenGL ES application given here: http://iphonedevelopment.blogspot.com/2009/06/empty-opengl-es-application-project.html I'm testing on a 3G (not 3GS) device, 8GB. The paint loop in my app which does openGL operations is doing quite a lot each time it renders the sc...