I have a TabBar bases application, which supports Landscape orientation only for one special view (the rootview of a UINaviagtionController). Now i want to force portrait orientation for all other views for this navigationcontroller.
I have tried to use
[[UIDevice currentDevice] setOrientation:UIDeviceOrientationPortrait];
This works g...
I have mapkit view on iphone and i want to show all world in view, but then i use
MKCoordinateRegion region;
region.center.latitude=0.0f;
region.center.longitude=0.0f;
region.span.latitudeDelta=180.0f;
region.span.longitudeDelta=360.0f;
[map setRegion:region];
I have error Terminating app due to uncaught exception 'NSInvalidArgumentE...
I want to show a UIActivityIndicator with text in a square box
...
I am implementing application in which i want animate some area of images so how it possible can you give me some idea about that?
...
I want to display all the video files from Photo library like youtube play list. Can anybody suggest me how I should go ahead for this? if possible please post some sample code regarding this.
...
How can I dissable the strange double tap behaviour when playing movie using MPMoviePlayerController.
The double tap makes zoom/unzoom of the movie and makes some of my gestures in the overlay view to stop working on the double tap area.
...
I want to add some custom buttons and realize the same effect like the iPhone's home screen. What I can think of is to calculate the position of each button and add them to the view. Are there any other ways to do this? e.g. add buttons to the tableview
...
how to scroll view and scroll view will disappear. i am write this code but this is not scroll disappear
-(void)viewWillAppear:(BOOL)animated
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:self.view.window];
[super viewWillAppear:animated]...
I have mapkit view and i need to display grid above map view. How i can bind grid to map? grid must move with map.
...
Hi all,
I want to make a gallery with previous and next button in my iPhone app.
If anyone has idea , link , exampler or something that lead me to implement the gallery please provide me .
...
hi, I have code like...
[((UIImageView *)cell.backgroundView) removeFromSuperview];
it removes cell.backgroundView from the UITableviewCell, but how can I bring it back again ..?
(add again that view?)
...
I'm getting this from an iPhone app I'm working on. Not sure how to interpret the error... It's thrown at a few place in my code. I can't see any pattern of occurrence.
Is this a generic error? What's the meaning of it?
...
-(void)viewWillAppear:(BOOL)animated
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:self.view.window];
[super viewWillAppear:animated];
}
-(void)viewWillDisappear:(BOOL)animated
{
[[NSNotificationCenter defaultCenter] removeObserver:...
Hi
I want to create a xml file dynamically for my Iphone application. I tried it by using NSXMLDocument but NSXMLDocument is not declared in iphone application.
Please help me in doing so.
Thanks
Gaurav
...
hello
I am trying to implement an iphone application which can read some fixed amount of bytes from a file and store in another file. this process will going on up to end of file. I am very new to iphone application so please help me on that . Is there any parent classes are there for this specific type of implementations.
...
i'm using the customised cell to Show an image. But, when i add an image to the first row, its get being loaded every 4th row. What might be the problem? I'm picking the image from the iphone photo library using uiimagepickercontroller and is giving it to the first cell of the table.
- (void)imagePickerController:(UIImagePickerControlle...
Hi,
I am trying to get a string value out of a textField when the user dismisses the keyboard. However, it seems that whenever I try to get the value, I get garbage (attempting to print out textField.text gives out garbage). What could I be doing wrong?
(The control displays fine, and I can put text values into it even).
Here's my cod...
Usually you need to hold the thumb image and move it on the slider, is there any property of UISlider or a way to move the thumb image i.e. change value when tapped on the slider
...
I have a subclass of UIViewController which handles a UIView. The viewcontroller is presented modally (it slides up from the bottom of the screen). At the top of the view, i have added a navigation bar. Note that this bar is not handled by a navigation controller.
I want to get the navbar to shrink in height when the view rotates to lan...
I am developing an iPhone application which requires a multiline text field (UITextView) to capture some text.
When the user touches inside the textView it becomes firstResponder and displays the keyboard. What I really need it to do is remove the keyboard when the user is finished. Normally with a text field the return/done button pres...