Hi Forum
I'm trying to add a «loader-view» to my app which shows a spinner while doing stuff.
This works fine the first time, but it doesn't work a second time.
here's what I do:
I have a viewController for the spinner (spinnerViewController) and a nib-file which I made in IB (spinner.xib).
I load the nib in the viewDidLoad-event:
spinnerView…
I've created a view in a xib (with an activity indicator, a progress view and a label).
Then I've created .h/.m files:
#import <UIKit/UIKit.h>
@interface MyCustomView : UIView {
IBOutlet UIActivityIndicatorView *actIndicator;
IBOutlet UIProgressView *progressBar;
IBOutlet UILabel *statusMsg;
}
@end
…
How can I remove the present view when I touched the close button.
I did [self.view removeFromSuperView] when I added only one subView. It worked. But, I have now added another subView to the previous subView. I need to to get the parent view . How can I do it. My code of adding the subView is here. When I did the following only one view is…
I am writing an iphone app where in numerous cases a subview needs to talk to its superview. For example:
View A has a table view that contains
photos
A has a subview B which allows users
to add photos, upon which I want to
auto append them to A's table view
So far I have been creating a @protocol in B, and registering A as the delegate.…
I have a mainView. To this view, I am adding a view of the same size. When the mainView(the background) rotates, its being detected but the subview doesnt have any idea about being rotated. And its functions are not even being called. Even when the program launches too, if I am in landscape mode, its the same way.
How can I make the subView…
Hey,
I want to converte a CGRect "aRect" of a object in a subview in UITableViewCell in UITable to CGRect with respect to self.view.
The problem is that aRect is with respect to the subview in the table cell.
But i want to make it so that it is with respect to self.view
What i tried is this
rect = [self.view convertRect:aRect.frame…
I want to display a gif image on a subview in iPhone. The sample code glgif shows the gif image on the controller's root view, but when I make the following modifications, the application just crashes:
IBOutlet UIView *gifView; // gifView is added as a subview of controller's root view
//PlayerView *plView = (PlayerView…
Hi,
This is some kind of a basic question:
I am adding a new Subview to a window using:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
viewController = [[myViewController alloc] initWithNibName:@"myNib" bundle:nil];
[window…
I'm trying to add a subview to a UITableViewCell and the design that I'm working from demands that this particular subview (an image) needs to be larger than the actual UITableViewCell and thus partly overlap its siblings.
So I've set up my table cell, generated my image and added it to the…
I know that a view can only be a subview of one superview, so is it possible to duplicate the UILabel so I don't have to copy the set-up code or write a function to create it?
This build warning just started showing up. I'm building for 3.1.3. Not sure what I did to trigger it. Anyone know what it means?!?
CompileXIB Classes/RootViewController.xib
Disabling subview autoresizing is not supported on iPhone OS versions prior to 3.0.
The docs say that the whole subview hierarchy can be created in -loadView. But there's also this -viewDidLoad method which sounds nice to ovewrite for actually building the hierarchy, when the view loaded. I guess it's a matter of taste only. But maybe doing so in -viewDidLoad hast the…
I have a context loader class which loads an XML file with info on which components to show or hide on a page. On the JSP pages, within the 'rendered' attribute for a subView,, I would like to make a call to
ContextLoader.displayPageComponent(String pageId, String componentId) which…
Let's say we have a view controller with one sub view. the subview takes up the center of the screen with 100 px margins on all sides. We then add a bunch of little stuff to click on inside that subview. We are only using the subview to take advantage of the new frame ( x=0, y=0…
I have two UIImageViews one as subview of the other. The subview is smaller and is centered on the screen.
Both have UITapGestureRecognizer assigned and both were intended to respond to single taps.
A single tap on the main view (= the area outside the subview) is fine, but a…
I have made an applications which contains a main canvas view. In which i add some subview (NSView) of different kind. Means say subView1 is a container for PDFView, subView 2 is a container for a WebView and subView 3 is a container for QTMovieView.
I can select and drag…
I have a subview that when double tapped a protocol method on the subview's parent view controller is called like this...
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *theTouch = [touches anyObject];
if (theTouch.tapCount == 1) {
}…
I have subclassed UIView object inside a uiscrollview which displays a pdf page. I can zoom that page. But when I do so, the inside view is zoomed and is getting blurred. I understood that the inner view shud be refreshed and i called setNeedsDisplay. But no…
Hi.
I made two applications that each one of them is tabbar based.
Now I want to combine them to one app that will be struct like that:
-Main menu with 2 buttones.
- button 1: tab bar app no 1.
- button 2: tab bar app no 2.
from each tab bar app, I want…
I've got a big UIView that responds to touches, and it's covered with lots of little UIViews that respond differently to touches. Is it possible to touch anywhere on screen and slide around, and have each view know if it's being touched?
For example, I put…
I'm trying to essentially re-implement the UISplitViewController (because it has its limits), but when I create a UIViewController viewController, and then do an "[viewController.view addSubview contentViewController.view]" on it, to add a view that already…
tl;dr: How does one implement MVC in JavaScript in a clean way?
I'm trying to implement MVC in JavaScript. I have googled and reorganized with my code countless times but have not found a suitable solution. (The code just doesn't "feel right".)
Here's how…
I have a UIScrollView that has a set of images loaded side-by-side inside it. You can see an example of my app here: http://www.42restaurants.com. My problem comes in with memory usage. I want to lazy load the images as they are about to appear on the…