iphone

What/How to triggers the close-iris animation of UIImagePickerController?

Hi all, I'm using a custom overlay view and showsCameraControls = NO. When I'm done I dismissModalViewControllerAnimated:YES. What appears to happen is that the iris appears fully closed (ie. no closing animation - just poof and it's closed) and then immediately slides down off the screen. As a test I manually called viewWillDisappear ...

Animated moving UIButton not responding to touches/taps while moving

Hi, I'm trying to animate a UIButton to move up the screen. At any point the user can touch it. However, it doesn't seem to respond to touches while moving, only at the start and end of its animation. I guess this is because the button itself isn't moving, just the image of it. Any ideas how I can solve this? Here's my code so far. Thank...

Anyone know how it would be possible to change the cursor in a UITextView in iOS?

A customer has requested that they want the cursor in the UITextView to be horizontal instead of vertical. Anyone know how I might do that as there isn't any public API to modify the cursor. ...

Can I legally track user behaviour for an iPhone/iPad app

I want to know how many people are using my app and how long they are using the app on average. Can I do this without violating any apple agreements? Or do I have to ask the user to permit the behaviour tracking? Or does Apple generally forbid this kind of information tracking? Greets, Sven ...

sending strings between two views?

i want to know how to send string between two views of a tab bar controller?is it done the same way as with simple two views? i have an application with tab bar controller with two tabs.there is a textfield in first view.i want to send the text to second view ...

iPhone SDK @package vs. @private vs. @public and struct

Hey I have a really simple question that needs more of just an explanation than a debug, but I have seen in the interface definitions for many class objects the keywords "@package", "@private", "@public", and then even weirder "struct {...}". I have been able to make complete programs without using any of the aforementioned, so I was hop...

Javascript Orientation Change doesn't work with PhoneGap on iPad

I'm adapting a small HTML/CSS/Javascript driven web magazine as an iApp for the iPad with the great mobile framework PhoneGap. Everything works great, except the orientation change from portrait to landscape mode. I use the following Javascript code in the header of the index.html (portrait): var isiPad = navigator.userAgent.match(/i...

Switch and Hide TabBarItems

Hi, I have an iPhone application that is setup as follows: UITabBarController CustomViewControllerLogin (UIViewController) UINavigationController CustomViewController1 (UIViewController) CustomViewController2 (UIViewController) CustomViewControllerLogout (UIViewController) How do I switch to CustomViewController1, when the user ...

Access variable from another class

Hi I have my View1 in which I have a variableView1 and when I click on a button, I have another view2 which opens. In there, I have a variableView2 which takes a value from a list of actions. I need to access variableView2 from my View1, how can I do this, I'm confused :( ...

only show keyboard when certain text field is tapped on ipad?

I need to move the view up when the keyboard is shown but only for 1 textfield at the bottom of my view, I thought it would be as easy as checking for isFirstResponder but no such luck - here is what I was trying: if ([notes isFirstResponder]) { [UIView beginAnimations:@"moveupcontrols" context:nil]; [UIView setAnimationDuratio...

NsMutable array retain count

Hey, i used the instruments to find leaks in my iphone app and i found that i have leak in this line in my code tableViewController.dataSource = [[NSMutableArray alloc] initWithArray:[subjects_dic allKeys]]; the property dataSource defined as retain. is this a mistake ?! ...

Iphone App - Is it possible to use text from an app?

Hey, I am about to start working on an app. I am a beginner, so I am starting out with a pretty basic concept. But, I was wondering if it was possible to send texts from an app. For example, if the person using my app sets a new high score, could they hit a publish button and my app could then send a text to his buddy bragging about the ...

How to disable, enable, then disable again scrolling in ipad/iphone with e.preventDefault(); ?

I have it disabled already, and I can enable it again. I used: document.ontouchmove = function(e){ e.preventDefault(); } In the document.ready(); to disable it. And I used this to enable it. function doTouchMove(state) { document.ontouchmove = function(e){ return state; } } I have it so when a user doubl...

Change UIAlertView width

In my humble opinion, the default alert view size on the iPad is a way too small. I have seen this and still have the same issue as the original poster there http://stackoverflow.com/questions/2763713/change-width-of-uialertview-in-ipad When reassigning the frame property, x-origin, y-origin and height all change as I tell them to, but...

create developer account

for create developer account Is it neccessary enter name on credit card for part personal information ? when i wanted to purchace occure below error Your country either does not have an Apple Online Store or does not offer Apple Developer Products for online purchase and said you should fill purchase form and fax it to specific n...

How to access the Overlay object boundingMapRect at the OverlayView?

Hi All, I'm trying to place images on top of Google Maps and I'm having trouble to fetch the overlay's boundingMapRect. The odd thing is that when I check the 'overlay' with the debugger the correct data is there, but when I try to print it - its garbage. This is the printing code: MKMapRect overlayRect = [self.overlay boundingMap...

How do I close a UISearchDisplayController programatically?

I want to close my UISearchDisplayController when the user clicks the "Search" button since I'm loading new data from the web. How do I close the controller programatically? I already have the proper method called, but don't know how to do it. I thought that the below would work, but I'm wrong. - (void)searchBarSearchButtonClicked:(UIS...

A specific UIControl based around UISlider for iPhone

Hi All, I need to show a specific bit of data to the screen and it is most easily represented as an adaptation of something like a UISlider. It will represent a range of related (numerical) answers between 0.0 and 10.0. The data I wish to show is the minimum, maximum and mean. However, I need to do this without revealing the numbers....

deploying my first mobile site : 3 newbie questions

I have created a mobile version of a my website which is a one-page webapp. I'm working with php server side and js+jquery on the front end. how can i auto-redirect mobile browsers to the mobile web-app in a way that's transparent to search engines? should i allow only mobile bots on the mobile site? (with robots.txt) do i need to f...

SplitViewController's popover UI error when UISearchBar is in focus.

When a splitview is in portrait mode, the rootView shows as a popover. in this case, my rootView has a tableView with a searchBar at the top. When I tapped the search bar, the keyboard appears, and the splitView's popover automatically adjust its height, but at the same time, I get this in the top of the popover.. Any ideas? Thanks in...