App only crashes the first time i rotate my phone (EXC_BAD_ACCESS). Anytime after its all gravy. It only crashes on device too. Simulator everything is good.
#import "ImageViewController.h"
#define degreesToRadian(x) (M_PI * (x) / 180.0)
#define ZOOM_VIEW_TAG 100
#define ZOOM_STEP 1.5
@interface ImageViewController (UtilityMethods)
- (...
- (void)viewDidLoad {
[super viewDidLoad];
//..do stuff..
}
or
- (void)viewDidLoad {
//do stuff
[super viewDidLoad];
...
In my app, I got a UINavigationController. Unfortunately, when I rotate the device and the interface orientation changes, the UINavigationBar doesn't change its height. In other iPhone applications, such as the Contacts.app, the navigation bar gets slightly less tall in landscape mode. It must be built-in, because if you take the navigat...
Hi Forum
I have a viewController that gets added to the current view like this:
theDetail = [[detailController alloc] initWithNibName:@"detail" bundle:[NSBundle mainBundle]];
[self.view addSubview:theDetail.view];
Now - when the user closes this new view, I remove it from the superview.
The User might hit the button to show this vi...
I'm trying to open the email view controller (MFMailComposeViewController), and everything I read suggests using presentModalViewController:animated:, which seems to need to be sent to a UIViewController.
For example, in the documentation, it says:
Call the presentModalViewController:animated: method of the current view controller, ...
Basically my app loads two RSS feeds - a blog feed and a twitter stream. These are in two different views in a tab bar controller. There is also a Home view which is the default view when the application launches.
Ok, so basically when you go from the Home tab to the blog or twitter tab then it takes a while to load. Fair enough, its tr...
I have a UITabbar with multiple view controllers. One of them is a UITableView. The tableview is stored in a nib where the file owner is a UITableViewController.
I'd like the tableview to show a "detail view" (custom view with a UILabel and some other elements) once a table cell is selected. My approach was to add the new details view a...
I know there's a simple UIViewAnimationOptionTransitionFlipFromLeft and way to implement that, but how do you do something similar (i.e. flip a UIView over) pre-iOS 4, like on the iPad, for example.
...
Are there any examples out there to emulate page turning like iBooks or Flipboard?
...
Hi everyone.
I am trying to catch when a specific UIPicker animation is finished.
I have looked long for an answer to this but it seems that the common answer, which is to ensure the selectRow call is within the beginAnimations and commitAnimations calls, does not work.
The problem is that the animationFinished is triggered almost imme...
The one that asks you to select a wireless network?
It looks like a UIAlertView and UIPickerView combined? How do you use it
...
I have a view made in Interface Builder and I want to show it every time I need time to get some data from a server. I need to add it on top of everything, I mean, modals can be presenting when this view is visible, and this view has to be always on top.
Any help?
Thanks in Advance
...
I have four UIViews on a UIScrollView (screen divided into quartiles)
On the quartiles, I have a few objects (UIImageViews), on each quartile.
When the user taps the screen, I want to find the closest object to the given CGPoint?
Any ideas?
I have the CGPoint and frame (CGRect) of the objects within each quartile.
UPDATE:
Red Pins...
Hi everybody,
I have a UIView with this structure inside it:
UIView
-- UIImageView
-- -- UIImage
The JPG image is vertical, and it's the same size of the device in the vertical orientation.
I want the UIImage to rotate this as follow:
Device is vertical:
The image is shown full size (fills the screen)
Device is horizontal:
- The im...
Hi,
I have a UIView with a NIB. The view in the NIB is set to 280 x 390.
When I add the View inside another view I "something" do this
view_name *view = [view_name alloc] initWithFrame:CGRectMake(0, 0, 280.00, 390.00) ];
[outer_view addSubview: view];
Now in certain instances I need to make the view smaller as there is other conten...
I am thinking about creating a Game Board view with an array of subviews to form slots for tiles. I plan to have tiles that I can drop onto the board and have them snap into position. The part I am unclear about is when I drop my tile and the touchesEnded event fires, what is the best way to loop through the subviews of my Game Board to ...
In my iPhone app, I have a view controller with two views (essentially, a front & back view). The front view is the main UIView, and the back view is a secondary UIView which is added as a subview using [self.view addSubview:backView] when showing the back and [backView removeFromSuperview] when hiding it. However, when the orientation c...
I am looking for some clarification with regards to view controllers and views. Should one view controller be used exclusively to control one view?
Basically, my portrait view is going to be a 4x3 grid of buttons (within a scrollview). When i rotate the view to landscape, i am going to want maybe a 6x4 grid.
Obviously the functionali...
For the fullscreen imaging app I am doing for iPad. I want to present an informational view atop the current view. This is simply a view, centered on but not entirely occluding the display that presents a textual description. This is the sort of thing we see routinely on websites where clicking on a link presents a canvas with a little "...
In my iPhone app, I have a UIViewController with two subviews: a main UIView (let's call it mainView), and a secondary UIView (let's call it secondView), which is usually hidden but is sometimes shown (e.g. user settings). In my UIViewController, self.view is set to mainView. When the user switches to the subview, I call [self.view addSu...