Hi,
I'm just wondering if anyone has any idea on how you can create a view that looks like the user profile view in apps like Tweetie, where there are seemingly multiple tables with a couple of normal (straight up and down tables) and then two rows of six cells, which in Tweeties case have the number of followers, following etc.
I'm tr...
Hi
I have an UINavigationController which the user navigates with.
When pushing a specific UIViewController onto the navigation stack, a "settings" button appear in the navigationBar. When the user clicks this button I would like to flip the current view/controller, i.e. everything on screen, including the navigationBar, over to a setti...
Hi all,
I haven't been programming on the iPhone for very long, but I'm picking it up slowly by googling problems I get. Unfortunately I haven't been able to find an answer for these.
I have started a new View-based application in Xcode 3.2.2 and immediately added the following files: myUIView.m and myUIView.h, which are subclasses of ...
How can I get a UIView to transition via addSubview like the presentModalViewController does? The available animations don't seem to do this.
I would use the modal but I have a navigation bar at the top and don't want to disable it. Also, the modal overlays on the navigation bar. If there is a way to have it so the modal doesn't disa...
I need to adjust several views in the event that a user visits my app while in a phone call. Is there a best practice for being notified of this?
Thanks!
...
Hello, when flip from one view to a new one, I get refreshing problem. New view contains a navigationItem with two buttons, one right, one left and when transition starts, I see buttons on opposite sides and not correctly positioned until the transition ends. Then view is showed correctly according to xib file. How to solve it??
...
I use...
-(void)didRotateFromInterfaceOrientation:
... to adapt a view that has been rotated to landscape.
However, I don't know which method to use when the view needs to be rotated back to portrait.
...
i have this in the superview:
mySubView = [[MySubView alloc] init];
[self addSubview:mySubView];
[mySubView release];
then at some point later, in the sub view, this:
[self removeFromSuperview];
when i debug it, i notice that the dealloc for the subview is never called, even though i'm fairly sure the reference count should be 0. a...
I am creating a nav-based app with a view that floats at the bottom of the screen (Alpha .7 most of the time).
I create it like this...
// stuff to create the tabbar/nav bar.
// THIS ALL WORKS...
// then add it to subview.
[window addSubview:tabBarController.view];
// need this last line to display the window (and tab bar controller)...
.Hi,
I have a nib file that contains an header that will be used in most of my views, so that I can change it's layout just once when I need. I'd like to know if it's possible to add the header nib view with interface builder, or if I need to do that programmatically and how should it be done.
I've thought about setting the subclass of...
I've had this problem before but was able to work around it until now, Basically I'm creating a custom UIbutton setting its image as a uiimage and then the button that has had a label until I implimented the below code now loses its label. I need that label because it is set programatically in code that follows.
NSString *imageName = [...
Hi
Is there a way to know when a view is viewable to user?
For example: if I have 2 views, and one of them is "hiding" the other-
how can I tell that the "hidden" view is currently not visible on screen,
and how can I check to see when it becomes visible again?
Thanks.
...
I have a loadView call that basically places one view at the top (like a header) and one at the bottom (like a footer). It's possible via a passed in parameter to not have a header or a footer, to hide them later, or to resize the view. I have all this working, but it's very susceptible to breaking because the views can go in various pla...
Hi All,
I want to draw a sinusodial wave which varies with time on a UIView.
What are the approaches should i take ?
Any sample code is there ??
...
Hi All,
How to draw audio waveforms on a UIView ?
...
I'm trying to create an activity indicator in iPhone app. The problem is that I cannot get it to appear before the actual task i want it to diplay during is already done. Is there something funky about the order in which the iPhone does stuff?
Here is my problematic code (in my app delegate):
-(BOOL)showProgressView: (NSString *) messa...
Hi,
I have a view that i need to rotate to fit the screen orientation.
As i can't set the orientation directly onto the view, i need to to the transform myself.
However i don't know how to calculate the angle rotation according to current view and old view.
Any help would be appreciated
Thanks
...
Hello!
I'm trying to have a View sensitive to double taps on an Android. So far, I learned to set up the double tap and know what place to handle the event for action:
API: android.view.GestureDetector.OnDoubleTapListener
private GestureDetector mGestureDetector;
…
mGestureDetector = new GestureDetector(this);
…
mG...
Hello all,
a short question.
I've created an app for the iPad, much like a utility app for the iPhone (one mainView, one flipSideView). The animation between them is UIModalTransitionStylePartialCurl.
shouldAutorotateToInterfaceOrientation is returning YES.
If I rotate the device BEFORE entering the FlipSide, everything is okay and the...
Is it possible to have the same background between tabs on a UITabBarController without having to set the same background on all the views? I want to put a view in the background that periodically does a very short, non-resource intensive animation. When switching tabs, I'd like that animation to persist. I've read how to do it for UINav...