Hello everyone,
I'm trying to autorotate a view and I have the same problem explained here:
willRotateToInterfaceOrientation not being called.
Even though I implemented shouldAutorotateToInterfaceOrientation and returned YES, in every UIViewController subclass I implemented; willRotateToInterfaceOrientation is not beign called.
Perhap...
Hello,
if i have got 1 Window and in the interface builder i add a second view, then in the Main Interface Builder Window I see 2 Views which are both called "View". How do I add one of this views programmatically to the m and the h file, and what do i have to edit in the interface builder so that i can run the second generated view (how...
I've created a UIButton subclass so that I can stick a custom view into a standard toolbar button. All it does, is create a stretchable image for the background, and then adds a custom view with userInteractionEnabled set to NO so the button handles all clicks. The code is here:
- (id) init {
if (!(self = [super init])) {
...
Hi all,
I'm getting the above error when compiling an iPhone app using the core-plot framework. I have this view controller's view linked to a CPLayerHostingView in IB. Here's the sample code from the viewDidLoad() function.
- (void)viewDidLoad {
[super viewDidLoad];
graph = [[CPXYGraph alloc] initWithFrame: self.view.bound...
I've created a view controller and the associated view using the interface builder. I'm trying to call a function that I added to the UIView from the UIViewController. I'm not sure how to call that function though.
I've tried
[self.view myFunction]
but that just makes my program crash.
...
Hi,
I have this app I'm working on, which on a second view asks (textfield) the name for a button to be created on first view. After specifying the name and pressing OK button, the first view pops up (as demanded) but there's no new button, although created indeed. Can I use the following code in a second view method, to "refresh" the f...
in my viewcontroller I make my instance of my view class ( in the viewdidload method)
in that view class I implement the layoutsubviews method and add all kinds of subviews there
now since that view class is part of a uiscrollview i want to make the scrollview contentsize as large as the view class
how do i get the height of my viewcla...
Hello I'm programming in OpenGLES for the iPhone but I'm currently stuck with a strange framebuffer object error.
At first I was following a few tutorials from Simon Maurice:
http://web.me.com/smaurice/AppleCoder/Welcome.html
But then I moved on to do a few experiments of my own before continuing with other tutorials, however my experi...
I have three UILabels of varying widths that I'd like to line up next to each other. How do I get update the frame's X value?
Here's what I have:
UILabel *contractLabel = (UILabel *) [cell viewWithTag:200];
contractLabel.text = [board getDisplayLevel];
UILabel *contractSuit = (UILabel *) [cell viewWithTag:201];
contractSuit.text = [b...
I'm trying to animate adding a new subview to a table view. (When the user clicks on the Plus sign button on the nav bar above the table view, I want a subview with a text field and a button to slide down from under the nav bar).
However, when I try to call [UIView beginAnimations:@"textFieldSlide", nil] the compiler warns me that:
...
I'd like to "pulse" the stroke color on a path that I've drawn in a UIView's drawRect. But not sure this is possible?
- (void)highlightView {
if (!isHighlighted) {
[UIView beginAnimations:NULL context:nil];
[UIView setAnimationDuration:0.75];
self.strokeColor = kHighlightColor;
self.strokeWidth = 2.0;
[UIVi...
I want to create "rounded" "semi-transparent" UIView (or anything does similar)
my code below results in animation effects, gradually change transparent density.
What I want is to avoid this effects and draw the resulting image straight from the beginning.
Can anyone know how to do?
Thank you.
- (id)initWithFrame:(CGRect)frame
{
...
Hi,
I created a very very basic iPhone app with File/New Projet/View-Based application.
No NIB file there.
Here is my appDelegate
.h
@interface MyAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
MyViewController *viewController;
}
.m
- (void)applicationDidFinishLaunching:(UIApplication *)applicati...
I have a rather tricky scrolling scenerio I need to get sorted. I have a parent UIScrollView with a single container view containing two child UIView subclasses. Call them viewA and viewB. The UIScrollView has been constrained to scroll/zoom horizontally. ViewA and ViewB are layed out as horizontal strips, one above the other. The bounds...
I am looking for a way to do a UIViewAnimationTransitionCurlUp or UIViewAnimationTransitionCurlDown transition on the iPhone but instead of top to bottom, do it from the left to right (or top/bottom in landscape mode). I've seen this asked aroud the internet a few times but none sems to get an answer. However I feel this is doable.
I ha...
I have a UIImage containing an image with a whole bunch of smaller pictures on the image (essentially an image strip containing sprites). I'd like to draw a single sprite onto an area of my UIView.
I can't seem to find a way draw only part of the UIImage onto the view. Is there a method that does this?
...
I'm using a container UIView to house a UIImageView and do some custom drawing. At this point I'd like to do some drawing on top of my subview. So overriding drawRect: in my container UIView will only draw below the subviews.
Is there a way to overload drawRect: in my subview without subclassing it?
I think method swizzling may be th...
My google-fu is failing here. I'm looking for the name of the UIView (or whatever it is) that handles several pages, with those little glowing dots indicating which page you're on.
...
Hello
I have 2 views, one login and another home. On clicking the signin button in my login view, on successful login, the user is redirected to the home view. Flip transition is implemented to acheive this. The problem is after the flip has occured, the home view layout is not displayed correctly. The view seems to drag itself above a ...
In IB I have 2 UIImageViews, 4 UIText, and 1 TabBar. I want to flip the ImageViews and the Texts together without flipping the TabBar.
I am using:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:ImgViewNameHere cache:YES];
[UIView ...