iphone

how can i change the keyboard at runtime in iphone

Hi, how can i change the keyboard at runtime in iphone? i have a Bar segmented control in which i have two options like "name" and "Phone no". And i have i textbox. I want when user selects "name" and type in textbox then a default keyboard should display but when user selects "phone no" and type in textbox then a "number pad" keybo...

How can I use a nonstandard color for the UIScrollView indicator ?

The UI gives 3 options for UIScrollViewIndicatorStyle, but I want to make the UIScrollView indicator red, which is not one of the standard styles. Can I do this? If so, how? ...

How do I enable rating on deletion for my iPhone application?

I'm building an iPhone application and I'm new to this, but I was wondering: is there something specific I need to do to enable the rating on deletion behavior? ...

What exactly happens when these lines of code is run + iPhone

VisitWebsiteVC *visitWebSite = [[[VisitWebsiteVC alloc] initWithNibName:@"VisitWebsiteVC" bundle:nil] retain]; [self.navigationController pushViewController:visitWebSite animated:YES]; [visitWebSite dealloc]; What will happen due to [visitWebSite dealloc]. ...

iPhone, How do I force one view into landscape mode?

How do I force one view into landscape mode for a graph. I want to click a tab bar button to make the graph view appear then when a button is clicked on that view I want to push a child screen which I need in portrait mode. Once they click back i want to return to the graph view in landscape. ...

iphone - running app on 3.1 with iAd framework

Hi, I built my app in iOS 4.1 and the app has iAd Framework. But I want to set deployment target as 3.1 so that app runs perfectly on older iPhone devices as well. To add iAd Banner view, I'm used IB and added the ads to my app. How can I make my app run on older iPhone OS and on Ipads. ...

Drag a label from a view to a window in iphone?

I am trying to implement a feel like drag and drop of label in iphone.I am able to drag and drop inside a single view.But if i try to to drag the label from my view to another view added on the window, the label goes below the second view(added to window).But i want to drag the label over the second view(added to window).How can i achi...

Remove duplicates nsmutableArray

i tried doign this: Values = [[NSSet setWithArray:Values] allObjects]; and no sucess, Thanks ...

Capture camera view and onverlay in an image.

I open the camera view and place an image as an overlay. I then want to save both the overlay and the camera view's image as one image. Previously I achieved this using UIGetScreenImage(). Now that Apple forbid this what are my options ? takePicture will only capture the camera data but the the overlay. Merging the overlay with the image...

CoreData could not fulfill a fault after MOC refreshed - how to solve?

Hi guys I'm new to iphone development and have this problem with Core Data. At the moment my app works as follows: I'm executing a fetch from Core Data and display my list of objects in TableView Detaching new thread, create new MOC for it, as advised, Getting xml, parse it, then clear Core Data and fill it with new data from xml Sav...

using remoteio together with AudioServicesPlaySystemSound

hello we are trying to use remoteio for audio recording in conjunction with the AudioServicesPlaySystemSound function for audio playback. the problem is that whenever remoteio is running the playback volume drops significantly. it seems like if some final mixing takes place behind the scene but we do not no how to change this behavior. ...

UIScrollView with UIButton doesn't scroll when touch down on button

Hi, I've got a UIScrollView in my UIView. I've added some UIButtons to the scroll view. If I touch down not on a button and drag, the scroll view drags fine. If I touch down on a button and drag then the scroll view doesn't move. I want the scroll view to always scroll around if dragged and the buttons only get selected on the Touch U...

How to implement a corner page curl UI?

I have an app with two full-screen views, one on top of the other. I would like to show the corner of the top view curled slightly away, and allow the user to curl it away more until the view underneath is completely showing. The user should be able to interact with whatever part of the view underneath is exposed, and with whatever part...

iPhone 4 App continues to run in background with debugger

Hi, on iphone with multitasking and iOS4.1, if i have the debugger connected i noticed that code is still being run in the background, my breakpoints are still hit, timers are running. This without any of the background modes set. Is it the case that having the debugger connected prevents the app from being suspended? ...

Compile Ben Gottlieb's Twitter oAuth iPhone Library for 4.0 AND 3.1.X

Hey there, I need Ben Gottlieb's Twitter Engine running on both iOS 4.0 and 3.1.X - I tried to recompile the libOAuth.a Library with certain SDK Versions but I didn't got it to work. The Library compiled with 3.1.3 SDK works just on 3.1.3 SDK, and the 4.0 compiled Library only on the 4.0 SDK. Any ideas how to get the Library running on...

Using Current Location from Location Manager in a Google Maps openURL?

Been looking into this for a while today however I can't seem to get my head around how to get the users current location into a Google Maps URL to open the Google Maps app with directions populated. I've taken this code from another tutorial and added it into my app. I need to get the "start" lat/lng from the below into my IBAction to ...

UIScrollView problem

Hi all, This may be a simple problem. I have a UIScrollView with 3 views. I need to display 3 dots like Indicator ( to indicate there are more pages to the user). How do i do this? Thanks ...

UIScrollView autoresizing content?

Hi there If I set UIScrollView height to self.view.frame.size.height and setAutoresizingMask:UIViewAutoresizingFlexibleHeight then when the view loads the UITabBarController and the UINavigationBar the scroll view frame resizes to suit. However the content size (set at: self.view.frame.size.height) doesn't change. Fair enough I guess -...

multitasking and return to application

Hi, on iphone with multitasking and iOS 4.x i run my app it work properly, now if i hit the home button (send a sms) and then double click the home button to return to my app i've notice that the app run like the first time not continue where i left it what is the solution to return to the point where you click the home button. thanks ...

UINavigationController Title not Applied

Hello, I am wondering why my UINavigationController is not letting me set a title. It lets me change the tint of the navigationBar, but the title and rightBarButtonItem I set just get ignored. Why? Here's my code: taps = 0; UIView*controllerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; controllerView.backgr...