iphone

[iPhone,Obj-C] What is "self" and how was the "view" property used?

In this: -(IBAction)buttonClick: (id)sender { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Fo Sho?" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"fo sho" otherButtonTitles:nil]; [actionSheet showInView:self.view]; } A U...

iPhone store remote server images

Hello, According to a couple of different postings here on SO "storing images in the database is definitely not recommended by Apple, the filesystem is actually really good at locating files (images in this case) on the disk, which makes it the best solution for saving images." link text I'm currently retrieving data from a remote db u...

Customizing order of cells in UITableView??

Hey everyone- I need some help. I have a UITableView that has cells that hold the title of an entity. Naturally, inside of a UITableView Section Header, it orders all cells or titles alphabetically by name. Each of these entities have several attributes, and one is a numerical value representing priority. Is there a way to make it so tha...

iPhone + stringWithUTF8String + memory leaks

Hello, I am using following code in my application to read the string value from database: objPlayer.playerName = [NSString stringWithUTF8String:(char *)sqlite3_column_text(selectstmt, 2)]; When I run the Instruments to find memory leaks it gives me NSCFString leaks at above line. What should I do, please help me. Regards, Pratik ...

how to hide capture button and cancel button in camara?

I am implementing game application.In which i have set UIView on camara overly.When i start application then its working properly but cancel and capture button is shown.I want to hide this button.Is it possible? ...

What variable types I should NOT use in iPhone code?

Can't find it now, but I recall I should avoid using double variables in iPhone coding for (poor) performance reasons? Is this true? Are there any other known problems with some variable types? ...

iPhone UIImagePicker Camera in Landscape Orientation

Is there any good way to set UIImagePicker to landscape orientation? I tried to call setStatusBarOrientation after presentModalViewController like following, [self presentModalViewController:picker animated:YES]; [[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated: NO ]; However, ...

UIButton Programmatically (SetImage content Adjustement)

Hi, I have a simple button and I want to put an image inside, so I have this code: myButton = [[UIButton alloc] initWithFrame:CGRectMake(20, 13, 116, 138)]; UIImage *image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:[self.visuel lpath] ofType:@"jpg"]]; [myButton setImage:image forState:UIControlStateNorm...

how can i record iphone's built in compass readings and use in my app.

i am developing an application in which i have to record compass reading. which is there in new iPhone 3GS. so i have to record compass reading and use it in my application. I dont want to create my own compass. is there any way by which i can do that? ...

Sending a data to a Web server

Hi, I have already finished my iphone app, but I would to add some monitoring to it on my Web site. What I want is get a location of the device (state, country) that using my app and then after I got the location I want to send it to a Web Server. Then in my site I will create a report of how many user's of my app. I haven't work on W...

box2d: bigger clickable/touchable area

I'm using Box2D on my iPhone app using Cocos2D. I'm using mouse joint to drag objects by touch. The touch event is handled to find the corresponding Box2D body using AABB queries. I would want to extend the area of Box2D bodies. In this way, I can touch approximately my body and still respond. Does it exist any way to do this? Thanks...

move up UIToolbar

I have UIToolbar at bottom of my view. And I have UITextField in this toolbar. When I begin editing this field keyboard hide it. And to see what i type I want to move toolbar up at the moment of showing keyboard (and move down then finish editing). How to move up/down UIToolbar? ...

how to check gps singal whether is avliable on iPhone ?

as topic... I try to use the didError method , but it does not works ... if I am in room , the iPhone sdk seem insist try to got the location as it could in my app, even the value is not accurate ... how to deal with such problem ? thanks for your help in advance . Regards ...

UItextfield auto labelling

hi, i'm having one text field, normally when touch the text field, keyboard will appear, is it any possibilities where when text field is touch one drop down list will appear to recommend value to be enter and value is selected it will appear in texr field thanks ...

iPhone NSURL get last redirected url

Hello Guys, i wonder how can you update your NSURL to the last url that a your url will redirect to using NSURL or NSRequest appreciate your help. thanks. ...

How do I get the position and size of an image after applying a transform?

Hi, all! Currently I'm developing a game in which I've an imageView which I'm scaling little by little & rotating at the end. I want to obtain the size of image & its coordinates ar the end of scaling which I need for 3D rotating the imageView which I need to redraw the image & apply rotation to it. I'm using if(ravanImage.cen...

iPhone + NSString error

Hello, I have static NSString as below: static NSString *bowlerName; In the code I am assigning it with some value as below: -(void)setBowlerSpecifications:(int)playerId { Player *objPlayer = [CricketManagementDAL getBowlerSpecification :playerId]; [objPlayer retain]; bowlerSpecialSkill = objPlayer.specialSkill; bowlerT...

TabBar combined with Navigation Bar / Search Bar and TableView

Hello! I used a TabBar in my iPhone application and integrated it programatically. I have several TabBarItems in it and every click will load a XYZ-ViewController with a corresponding XYZ-View.xib. Now I use to have a screen with the TabBar and a NavBar with SearchBar and a segmented control like in this example of Apple: http://develo...

Weird problem with UInt8 in iPhone (EXC_BAD_ACCESS)

I am developing an image processing application by converting image to bitmap. I am manipulating bits in bitmap to get the desired effect. First time i process an image it gives the correct result on the second try it gives EXC_BAD_ACCESS debugger is showing: dataref outofscope My code is CGImageRef img=previewImageView.image.CGImag...

UIColor result in NSString problem?

hi,the code is NSString *st = [[UIColor greenColor] description]; it gives wrong output. i want to get the Result , st must be @"greenColor" as a NSString any help please? ...