iphone

UINavigationController problem in my iphone app?

Hi, I have created UITabbarController for my app, for every tabbar have individual viewControllers, which i have changed it as navigationController, The first tabbar, i have placed UIScrollview and place some of the objects on scrollview, I was not able to access navigation controller inside of view placed on scrollview, please help me ...

how to display a picture when receiving a call on iphone

AS the title ,i wanna to display a picture which is in the local folder as the background of the screen when receiving a call on iphone. how can i get it.I need help. ...

AVCaptureSession cancels background audio

Hello, Whenever I start an AVCaptureSession running with the microphone as an input it cancels whatever background music is currently running (iPod music for instance). If I comment out the line adding the audio input, the background audio continues. Does anyone know of a way to record video clips with the microphone while continuing ...

Objective-C Sort NSMutableArray of Objects by a specific Object attribute

I have an object called Station in my system with these attributes: @interface Station : NSObject { NSString *stationID; NSString *callsign; NSString *stationState; } I also have an NSMutableArray containing 20 'Station' objects as defined above. I need to define a method which can can sort this array in 2 ways: 1) By stationID 2) By...

vertical color gradient

Horizontal gradient is working fine . Is there any property to get vertical color gradient from horizontal gradient. I have seen the related question regarding this where they have explained using rotating the frames... so, is there any simpler way to achieve vertical gradient.. ...

fetching current filename of the uiimageview

Hello everybody. I have an array of image file names. I load the image into uiimageview in a for loop. i have also kept a button on the background of imageview, so that when the thumb image is tapped, the full size image would be shown. I do the operation of loading the full size image on the button click function. My problem is how wou...

Using HTTP long polling when sockets are available (e.g. iPhone, Blackberry)

I'm currently writing a simple cross platform app with Node.js on the server and web/iPhone/Blackberry clients. Bandwidth and latency requirements are similar to something you would see in an IRC "party game" or any chat system. I've developed the web client using http long polling (speaking JSON both ways). For iPhone/blackberry I coul...

what is the max size of the texture iphone can support?

1024*1024? or only 2048*2048 in iPhone3gs and up? ...

how to open compose mail

hi i create a two buttons named as supportweb and email,and under these buttons i write the code as - (void) supportweb { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.fitzgerlad.com"]]; } - (void) email { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"[email protected]"]];...

release NSMutable array in obj-c

where to dealloc/ release my NS-mutable array a1 ?? see this - (void)viewDidLoad { [NSThread detachNewThreadSelector:@selector(loadImage) toTarget:self withObject:nil]; } - (void) loadImage { NSLog(@" THREAD METHOD"); NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSUserDefaults *imgg = [NSUserDe...

Big activity indicator on iPhone

Does anyone know how to show a rounded squared with a spinning activity indicator? It is used in many apps. If you don't know what im talking about, it looks like the indicator when you change volume on your Mac but with a darker background. Im not sure if it is built-in to iOS or someone made it. Like the one in this post but not full ...

How to use memory profiler tool instruments to check the memory leaks?

Hi, I am new to iPhone programming. Can someone please help me by guiding how to use instruments to check if there are any memory leaks there in my application? Also, What are other uses of this tool? ...

How to get location name by using latitude and longitude values.

Hi All, In my application i have to get the location name using latitude and longitude values, I think we can get them through reverse geocoding is there any method that we can use and get the location value Thank You ...

xml data text + binary

Hello all, I built iphone app that getting inforamtion from server(this is server that i built also). the data from the server is type XML and i use the xml parser to parse the message. what i want is to add image to be send from the server and i am asking if i cann add binary data such image to the xml message.for example 10 tags will b...

eventKit framework in iOS4.0

i am developing a quick app using EKEventKit framework. I am able to display the modal and i am fillinf details in that but when i click the done button after filling all the entries,application crashes and console writes NewFeatures[16949:207] Calendar: unable to save event: Error Domain=EKErrorDomain Code=5 "An unexpected error occur...

Objective-C NSMutableArray: Problem with sorting objects?

I currently have an object called Station defined as: @interface RFStation : NSObject { NSString *stationID; NSString *callsign; NSString *logo; NSString *frequency; @end I also have an NSMutableArray containing a list of 'Station' objects. I need to have a method to sort these objects by the 'stationState' attrib...

release int in objective-c

do you need to release int in objective-c? How can we tell if something needs to be released or not? ...

why Delegate Methods for CurrentLotion(CLLocationManager) is not called in iOS4.0?

Hi!I am using iPhone sdk 4.0.I have used below code for taking Current location but it's delegate methods is not called Automatically...My code is given below: in .hfile i have import CoreLocation/CoreLocation.h also delegate CLLocationManagerDelegate CLLocationManager *locationManager; in .mfile locationManager = [[CLLocatio...

Memory leak in UIButton setFont

Hi, Hope you all doing well, I am getting a memory leak while setting the font of UIButton. This is the code which I am using to set the font, [MyBtn.titleLabel setFont:[UIFont boldSystemFontOfSize:12]]; whereas MyBtn is connected to IBOoutlet and I am not allocating memory to it. I don't see any thing wrong in the code. Hopeful...

How can I measure network traffic?

For example as Download Meter app does. Can I track packages dispatched? Does iOS a traffic tracking system that I can poll somewhere? ...