iphone

i should able to add buttons on my image ,this image is placed on toolbar

i am having an image for tool bar and when i should add buttons on this toolbar image,how can i do it.... i am able to create buttons but how can i place them on the image ...

moving TTLauncherView from sdk3.x to sdk4.0 adds an ugly shadow to TTLauncherItem's badge

We are moving an app from iOS3.x to iOS4. Now a shadow shows up for the TTLauncherItem's badge, as show in the image. How to get rid of that shadow? ...

[UIFont fontWithName: size] memory leak on iPhone iOS4?

I have function for adding UILabel to my view: UILabel* AddLabel(UIView* view,CGRect labelRect, UIStyle* labelStyle, NSString* labelText) { UILabel* label = [[[UILabel alloc] initWithFrame:labelRect] autorelease]; label.textColor = [UIColor colorWithCGColor:[ labelStyle.textColor CGColor]]; label.backgroundColor = [UIColor c...

Rear iPhone 4 camera too high quality for UIImageView?

When using the iPhone 4, I'm having memory issues when using the rear-facing camera. It's causing memory errors and won't assign the picture to a UIView. Here's the code. -(IBAction)getCameraPicture:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = NO;...

Time Profiler: Optimizing UIImageView alloc/init calls

Time Profiler says that statements like these are slowing my app down. Is there a better way to write this so that my app runs faster? background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myfolder.png"] highlightedImage:[UIImage imageNamed:@"myfolderOFF.png"]]; Thanks ...

how can i add buttons to my navigation controller toolbar,so that i can see them in all views

I AM HAVING nav controller and in main view.nib i added two buttons on to tool bar and i should view these in next views also,but iam not able to see right now those in next view , where i hav to add these so i can see these buttons or access in any view .... any help appreciated... ...

iAd randomly crashes

Hi, I got this iAd crash randomly in my app. What could I do to fix? I don't see any hints for me to fix it because on the simulator it never happens. Incident Identifier: CA4CBEB9-A081-459B-BAAA-C7D58A0E0ABC CrashReporter Key: e24b9614a897f92ee13ce00b76c71db307c61dcb Hardware Model: iPod2,1 Process: FooApp [737] Path: ...

Train track route using GoogleMaps

Hi, I am woundering if it is possible to create a route on a map using a train track. I know its possible over normal roads. Best regards, Paul peelen ...

Issue with erase or transparent stroke using CoreGraphics framework

In one of my apps, am trying to erase/transparent stroke a part of UIImage which am drawing using CoreGraphics framework (CGContextRef etc..). Well in the process I am able to clear the drawing in one shot by calling "removeAllObjects" message, but I was not able to figure out, how to erase a part of the drawing image. Gosh!! I sat the w...

MPMoviePlayerController not working in iOS4

I'm using the first answer from http://stackoverflow.com/questions/3130363/ios-4-mpmovieplayercontroller to try and get MPMoviePlayerController to play. In the simulator (iPhone device with iOS4), I hear sound but no video. On the device (iPhone 3GS and iOS4), I don't get anything. Here's my code: MPMoviePlayerController *moviePlaye...

How do I populate a predefined UITableView to a view using the interface builder

Hi, I've created a custom UITableViewCell with a label and a text field. I want to create two cells in a group to represent a nice username/password input mechanism. I've run into some troubles figuring it out (things like the delegate/dataSource). Is there a more direct approach to just add those two cells and get the data inserted int...

Install third party application in jailbreaked iphone

Hi, Hi i have recently jailbreaked my iphone 2G( 3.1.3).But now i need to install my app into the iphone for testing.I already initiated the process of Apple developer program but it will take a while ,so meanwhile i want to test my application in jaibreaked phone .So anyone could help me how to install third party applications in this ...

Load image for UIImageView from the net with security

Hi, I'm trying to load an image into an UIImageView from the internet. This is no problem, but what I want is the image be secured with user credentials. So if you go to the direct link of the image, you get an login popup (secured directory). How can I pass those user credentials so I can load the image from the net with user credenti...

Building against 3.x SDK in Xcode 3.2.3 for iPhone only app?

Is it possible? Because if I build against SDK 4.0, my app goes wacko, doing silly things and generally not working properly. If I build against 3.2 however, it works splendidly, but I get a warning saying: [BWARN]warning: building with 'Targeted Device Family' set to iPhone only ('1') not supported with SDK 'Device - iPhone OS 3.2'....

How can I move my tool bar to next view

I have a tool bar and I want that to be visible on next views as well. How can I do this? ...

Does iPhone SDK support links in PDF and can they be routed internally?

I am producing a magazine for a client for the iPad and they would to include PDF pages with internal links to videos/other pages etc. Can this be done with the standard PDF controls etc? ...

iPhone Objective-C CoreLocation: Want to populate table with data based on current location.

I am trying to get the current longitude and latitude right before the table loads and use the coordinates to make an HTTP request to get a list of nearby locations to display in a table. Right now, I am calling startUpdatingLocation in viewWillLoad, which is too late. My problem is that I can't seem to get the locations before the table...

JEFF LAMARCHE's Alert View with prompt is offscreen in iOS4

Anyone know why Jeff Lamarche's Alert View with prompt class produces a alert that is mostly off screen when used in iOS4? All the code in a downloadable project can be found here: http://iphonedevelopment.blogspot.com/2009/02/alert-view-with-prompt.html His sample project out of the box, in the 3.2 simulator (running as an iphone app...

Utility App and plist - is this the appropriate approach to making a flashcard style application?

Dear Developers, I am trying to integrate a question/answer section to one of my apps. I wanted to use a Utility style application where the question is loaded as a Uilable in the first view, and the answer is loaded in the flippedview. I was hoping to load the question and answer data from a plist, and integrate a shuffle option so ...

Core Data Memory Leak - iPhone iOS4

Hi guys, I desperately need help with a memory leak in my iPhone app. The app is ready to submit to the app store, is stable, has no memory leaks at all in iPhone simulator or Clang ... but seems riddled with them on my iPod Touch. They all seem to stem from managedObjectModel when I'm trying to retrieve data from Core Data. The Core...