iphone

Appcelerator Titanium: Create system/icon buttons without placing on toolbar

Is there a way to create System buttons (or "image/icon" buttons) in Appcelerator Titanium without having to place them on a toolbar? I would like to just be able to place them on a regular view. As an alternative, I can just create ImageViews, but I lose the built-in animations when doing that. I'm hoping I'm just missing something. ...

MKMapView ignores update of centerOffset in iOS 4

I previously created a custom callout bubble as a subview to the MKAnnotationView because the built in callout is so limited. This requires me to change to centerOffset of the MKAnnotationView when it is selected to account for the size of the callout bubble. This all worked perfectly before iOS 4 came out. Now, with iOS 4, it complet...

iPhone - Enlarge image, keep quality

Hello, I am working on an application that allows a user to pick a photo from their camera roll or take a picture. From the picture, I need to increase the size to be 1050x670 and keep the quality of the image. I am able to increase the image, but the picture comes out very pixelated when I send it through email. In the app, I will b...

iPhone 4 supporting High-Resolution Screens UIwebView

Hi there, I'm using UIwebView on my my app, but it doesn't support 960*640px, stuck at 480*320 How I can increase my resolution ? NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"checker" ofType:@"html"]; NSData *htmlData = [NSData dataWithContentsOfFile:htmlFile]; [webView loadData:htmlData MIMEType:@"text/html" textEncod...

How to load an external php or html file into a section in my iPhone app

Trying to figure out how to load an external webpage into my iPhone app. It would be used to let people know the latest of something. Here's what I have found but I am unaware of how to use it: NSData *externalData = [NSData dataWithContentsOfURL:[NSURL URLWithString: @"http"//www.xprogress.com/time.php"]] How would I load this into...

How can I fade out text on a cell when I press edit button?

Hi, I would like to make my text label on a cell fade out when I press a button. I tried pointing the label I want to make fade out, but it just work for only last cell. And I found out that -(void) willTransitionToState:(UITableViewCellStateMask)state is the way to solve this problem, but I don't know how to use. Do I need to make a ne...

'__glibcxx_requires_valid_range' was not declared in this scope (xcode)

I'm trying to use in an Xcode (iphone) static library, and can't figure out this error. Anyone else had this before? It borks in the file stl_algobase.h at these places: __glibcxx_requires_valid_range(__first, __last); I've tried using GCC 4.0, but it always includes from here: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs...

iPad iPod app album flip effect

Does anyone know how to implement the album flip effect in the iPod application on iPad? I want to have this effect when presenting a modal view controller. ...

iphone ==> iAd ???

1- my app is only runs on landscape mode, so i set the size of my AdBannerVioew to 480x32 but when i load the app, and i see the "test ad" it doesn't cover the width of the screen, and it's only 320px wide, is it because it's not an actual ad, and it's just for test? 2- I don't want to show the ad all the timer, every 3 minutes i want t...

Load entire image and use CATiledLayer

Hello, I'm not sure I did understand that very well in the Apple doc. I'm considering using CATiledLayer to display a JPEG image. However, I only have an entire JPEG file at my disposal and no small tiles. Is it still possible to use a CATiledLayer and let it "tile" the JPEG? Thanks! ...

Instruments reporting false memory leaks?

I ran Instruments on my iPad app to check for leaks. It found several "leaks" where an object was being retained in a method: But these objects are released later in dealloc: Are these classified as false-positives? ...

iphone touch coordinates

Is there a way to get the coordinates off all touches currently on the display at any given time without having to keep track of all of the touchesBegan, touchesMoved, and touchesEnded. Because as far as I can tell getting the coordinates within any one of these functions by doing: NSSet *allTouches = [event allTouches]; UITouch *touch ...

autorelease previous object by assignment

If I have a function like this void setSomeObject( SomeObjectClass obj /*, and some other params*/ ) { [_previous autorelease]; _previous = obj; } As far as I understood it the autorelease message is sent to the object itself (not _previous) so at one point, sometime when setSomeObject goes out of scope the original object is auto...

iPhone NSURLConnection - delegates not working

Hello- I am trying to get an NSURLConnection to work in my app. I have followed apple's code almost exactly but it doesn't seem to work. The NSURLConnection is inside of a method called, downloadSave. This method runs properly through the end, and my log indicates, "Connection Exists" - however nothing happens after that as if none of th...

How to add to Interface builder classes in a static library, permanently?

Hi, all. I know the thread on http://stackoverflow.com/questions/1058766/interface-builder-cant-see-classes-in-a-static-library there add to InterfaceBuilder(IB) classes in static library, temporary. The way is drag & drop the header files(.h). It's working in one time booting the IB I wanna permanently add to IB the classes. How to d...

MPMoviePlayerController play error on iPad

Hello, I'm writing an app that will be playing videos alot using the MPMoviePlayerController on the iPad. The problem is the app was working fine and playing the videos when I stopped working about 15 hours ago but now the videos do not play. The MPMoviePlayerController will show the first frame from the video, and in full screen view ...

How do I transpose a view's frame to it's superview?

Not even sure how to ask this. Transpose local coordinates to global? ...

[ffmpeg][iPhone] Can I record a video without useing UIImagePickerControlle?

Can I record a video without useing UIImagePickerControlle? Of course with not jailbreaking,not App Store rejection. iVideoCamera ,iVidCam These camera applications can recode video and work on iPhone 2G/3G which utilizes ffmpeg. so I think there is a way to access video device not using UIImagePickerController. I pick this code up b...

How to Auto Rotate in Window-Based application

I was able to auto rate the view based application, but not window based application. When I google, I do get information for view based application only. Tnx in advance Shan ...

Disabling a specific warning in a specific line in XCode

I'm writing an iPhone app against the Base 4.0 SDK, but I'm targeting OS 3.1.3 so OS 3 users can use the app. I call: [[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES]; which is deprecated in iOS 4.0. I'm aware of this, and have measures in place to call the newer "withAnimation" version if we are running under ...