iphone

how i can change the background color of navigationBar

Hi developer, In my navigation bar i have two button at left and right position and a segmentetControll view at navigation title. I want to change the background color of the navigation bar to black but thae color of the items on it will be another color. how can i do it? I try to chnage the tintColor of the navigationBar to black. but i...

iPhone AVAudioPlayer stopping background music

So I've just noticed that on my iPod Touch, when my app triggers a short wav file to play using AVAudioPlayer, the music gets paused. Is this normal? I can't find any reference to this, and it seems like it would be noted somewhere. Is there a way to keep the music going while I play my sounds? Thanks ever so much! ...

APNS result legend

Hi Guys, Does anyone knows what does int return values for APNS send push messages mean. To be more specific, here is my PHP server side directive: $res = fwrite($apns, $apnsMessage); Sometimes $res is 169, sometimes some other number. Has anyone deciphered this? Regardz, Mladen ...

Can anyone identify the leakage , help ?

Hello all , I have developed my iPhone application and now I am testing it with instruments to find memory leakages . I have my appDelegate class in which I am fetching data from web service and then parse it then store it in an array.. Here is my applicationDidFinishLaunching method : UIApplication* app = [UIApplication sharedAppl...

Line is erased when drawing shapes

Hi, I am trying to make an application for drawing shapes on screen by touching it. I can draw a line from one point to another- but it erases on each new draw. Here is my code: CGPoint location; CGContextRef context; CGPoint drawAtPoint; CGPoint lastPoint; -(void)awakeFromNib{ //[self addSubview:noteView]; } -(void)touchesMoved...

iPhone get image width and size

hi all, i am new to iPhone. i want to get the height of a image. so i can set the frame of UIImageview accordingly. Please suggest how can i get the original size(width and height) of image. ...

how to access mysql from iphone

i'm a beginner to iphone.i want to create a login page for my application.i cant figure out how to connect to a php page and retrieve corresponding data from mysql database to the iphone.could any one guide me how to go about it. ...

MFMailComposeViewController can be without presentModalViewController?

Apple provides the code to use MFMailComposeViewController.but it uses (IBAction)buttonPressed { MFMailComposeViewController *controller = [[MFMailComposeViewController alloc]init]; controller.mailComposeDelegate = self; [controller setSubject:@"In app email..."]; [controller setMessageBody:@"...a tutorial from mobileorchard.com"...

Using CHDataStructures.framework on iPhone

Hi, I'm new to iPhone programming and I'm trying to use CHDataStructures in my project. But I'm running into some issues: When I directly try to build it right after download I get the error "Foundation/Foundation.h" no such file or directory. The Active SDK is "Use Base SDK" and the active architecture is x86_64. I believe I should s...

Is there any API to find MCC for iPhone ?

Possible Duplicate: How can I get the MCC and MNC on an iPhone Is there any API to find the Mobile Country Code(MCC) for iPhone ???? If any body have any idea then please let me answer........ ...

iPhone - prevent Invalid Hex character error with NSXMLParser

Hi I am parsing an XML coming from a web server and the parsing sometimes stops with Error code 6. From the documentation, I found out the error is NSXMLParserInvalidHexCharacterRefError. The character in question is Ĵ. Can someone please tell me how I can prevent NSXMLParser from sending an error if it encounters these characters (or ...

How do i stream an audio file from the server to iphone?

Hi all, I need to stream an audio file which is saved on my server. Is it possible for me to stream that file in order to play it on my iPhone? Or is there any other way to play an audio file from the server to iPhone? help me please. Thanks, Shibin ...

Location permission alert on iphone with phonegap

How do you change the string on the alert saying: "(Appname/whatever it is) would like to use your current location"? Of course, I only want to change the appname part. Because when you use the framework phonegap, the string is VERY ugly, something like this: "/var/mobile/Applications/157EB70D-4AA7-826E-690F0CBE0F/appname.app/www/index....

Header below a section gets duplicated if a row is deleted from the section above

In the editing mode of one of my tableviews, I delete a row from a section. The section below has a header. The deletion of the row in the section above leads to duplication of the section header below. So I have 2 header titles, one above the other. I also tried forcing a reload of the section after the delete to no avail: [self.table...

How can a superview interecept a touch sequence before any of its subviews?

I have a view hierarchy that is layed out as follows: parentView scrollView contentViewA containerView contentViewB contentViewC I want contentViewB to respond to touches. Unfortunately scrollView makes this almost impossible because it tries to ingest the touches itself making touch response of content...

Fast 4x4 Matrix Multiplication in C

I am trying to find an optimized C or Assembler implementation of a function that multiplies two 4x4 matrices with each other. The platform is an ARM6 or ARM7 based iPhone or iPod. Currently, I am using a fairly standard approach - just a little loop-unrolled. #define O(y,x) (y + (x<<2)) static inline void Matrix4x4MultiplyBy4x4 (flo...

iPhone Flickr group pool uploader

I'm trying to write an app that allows the user to take a photo, then upload it to a flickr group pool. Does anyone have any sample code that does this or can point me in the right direction? Thanks. ...

How to initialize this archived object?

Hey there! I have made an class that conforms to the protocol. So I have implemented an init method like this: - (id)initWithCoder:(NSCoder*)decoder { if ((self = [super init])) { self.someIvarObject = [decoder decodeObjectForKey:kObjectKey]; } return self; } Of course I also have an -(void)encodeWithCoder:(NSCoder*)encoder met...

Create a UIButton like the App Buttons on the Springboard (Home Screen)

I have been trying to figure this out but have yet to come to a solid conclusion. I would like to create a UIButton and have it look like the buttons on the home screen, with the picture and text below it. I know Apple took away the UIGlassButton so the 3d'ish look can't be programmed but I am mainly wondering about the position of the e...

Is there any danger in leaving NSLog statements when building an app for distribution?

For some reason, during my development cycle I find myself deleting NSLog statements that I had inserted to aid in debugging. I don't really know why I have this habit, I just do it. On occasion, during development I'll find that I'll run into a problem I've had before, and then wind up re-adding an old NSLog statement. And then deletin...