uiview

How to update 2D iPhone game to be compatible w/ iPhone 4's retina display?

What are the necessary steps to update an existing OpenGL ES 1.1 based 2D iPhone game to be compatible w/ the iPhone 4's retina display? I'm still using the Texture2D class that came w/ Apple's CrashLanding (download) sample code. After reading Apple's documentation, watching the WWDC video (session 134 "Optimize Your iPhone App for t...

How to display wpf Splash screen inside main window?

WPF Splash screen getting displayed just as an image not as a window...i mean ...it looks like first an image comes..then...my window(i mean window with a bar at top) comes in...How do I display image inside my main window ...

How to display a "Loading..." text while retrieving items for a ListView

There are some others applications doing this, like Twitter, Facebook, or even native applications such as Android Market. When you want to display a list of items retrieved from the internet, this looks like a standard way for displaying the user some notification about action in progress. This is a white background screen with an anima...

Should I release self.view?

Hi everyone, I have a question regarding to self.view in a UIViewController. First, in my app, everything is created programmatically. And normally I create self.view in the loadView method: self.view = [[UIView alloc]initWithFrame:SCREEN_FRAME]autorelease]; // SCREEN_FRAME is a constant At this moment, the retain count of self.view ...

I would like to make UIView animation like Mac genie minimize effect

Hi, I have 2 UIViews and I would like them to replace places in the main view in animation like the mac or a better example is in iMovie, the way how the two windows replacing places. Thanks! ...

iPhone: Handling touches transparently

I have a UIViewController and an associated with it UIView. The UIView has a number of subviews. How to handle touch event inside a specified rectangle in my UIViewController subclass? This handling should be transparent: UIView and its subviews should still receive their touch events even if they intersect with the specified rectangle...

Does releasing a UIView release all its subviews?

If I have a UIView, and I add an allocated subview into it (in this case the UIImageView), when I release the UIView, will UIImageView also be released? I set up my view and a subview like this: UIView *view=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; UIImage *myImage=[UIImage imageNamed:@"image.png"]; // This is the su...

Losing touch events after MFMailComposerViewController is dismissed.

I'm calling a MFMailComposerViewController in my app and adding it as a subview to the UIView. When the user has finished with the e-mail I'm calling dismissModalViewControllerAnimated to remove it, but the app delegate no longer gets touch events and I don't know why. This only happens in OS 4.0+ though. ...

How to add Terms and conditions view to my application so that it will be visible first time only...

In my applications i hav a terms and conditions view describing terms to use when user selects agree he will go to sign in page otherwise not ,it must be visible to user at first time when application launched in his mobile after that it has to start up with sign in view how can i do this ... any ideas appreciated.... ...

How can I center my image in horizontal orientation?

I have an image view that is inside of a UIScrollView so that I can pinch & zoom. My image looks fine in portrait mode, but when I go to horizontal orientation the image is not centered. The UIScrollView is 320x460. Here is my code: - (void)viewDidLoad { [super viewDidLoad]; CGRect frame = CGRectMake(0, 0, 320, 460); self...

Set UITextView in focus

I have a UITextView that is editable on a parent view along with a few other things. How can I set the UITextView to focus when the parent view shows up? ...

UINavigationController / reloading views / working with views!

Hi stack overflow! I have a view based project working with a UINavigationController. The RootViewController performs operations for writing to a data model when a new entry is made. I have an add (+) button on my main screen that adds an entry with a timestamp and records this to the data model. I want to click the add button, brows...

Problem zooming into UIImageView

I am following Apple's ScrollSuite example, however pinch to zoom is not working. I am not sure whats wrong: // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { [super viewDidLoad]; // set up main scroll view imageScrollView = [[UIScrollView alloc] initWithFram...

Loading a UIView subclass from NIB size issues

I have a subclass of UIView that needs to calculates it's height according to it's width. When created in code everything works. However when I try to create the view in Interface builder, and although I override all related methods, I can't get the size of the view set in interface builder. - (id)initWithCoder:(NSCoder *)aDecoder { ...

ext_bad_access when trying to show a tableView

Hello there, I'm having the following issue: I have a tab-style app. Eacht tab has its own viewcontroller and xip. Within the first tab-view, I try to display a button which load a next view, showing a grouped tableView. Everything works as expected, the numberofSectionsInTableView is called, and then I get an ext_bad_access error. ...

Showing UIBezierPath on view

In one of my methods i have this code: -(void)myMethod { UIBezierPath *circle = [UIBezierPath bezierPathWithOvalInRect:CGRectMake(75, 100, 200, 200)]; } How do i get it to show on the view? I tried addSubview but it gave me an incompatible type error because its expecting a UIView. I'm sure this must ...

Getting navigation controller to launch one of two different views

I have a program where we are using a navigation controller and need the app to launch to one of two different views. Basically if certain info has previously been entered then we need the app to launch to view A, but if the info has never been entered then we need it to launch to view B. I am having difficulty getting this to work and a...

Getting black screen when loading navigation controller

The following code below is attempting to implement a method where my navigation controller launches to on e of two different views. The problem is that I keep getting a black screen whenever my application launches. #import "SugarCRMReleaseOneAppDelegate.h" #import "SettingsViewController.h" #import "ModuleViewController.h" @implemen...

ObjC: Moving the displayed area of a UIView

Hi! I have a big UIView (.frame == CGRectMake(0, 0, 905, 320) ) currently the left part is shown (that is (0,0,480,320)) and I would like to be able to show the right side on click. I tried to change the UIView's frame to (480,0,905,320) but it does not seem to work. Does anyone know how to do it? it is embedded in a window with .fram...

Initial View over Split View Based Application

Hey guys, I'm trying to add an initial view to a split view based application. I want the user to press a button on the initial view to navigate to the split view. However, I'm rather clueless on how to accomplish this. Any ideas/tips? Thanks ...