So I have a bunch of UIViews that I made programmatically and placed a bunch of content on (UIButtons, UILabels, UINavigationBars, etc.), and most of these views are going to need to actually be UIScrollViews instead.
Now keep in mind I made all these through code not the Interface Builder. What I first tried was to just change each dec...
this may sound funny, but i spent hours trying to recreate a knob with a realistic rotation using UIView and some trig. I achieved the goal, but now i can not figure out how to know if the knob is rotating left or right. The most pertinent part of the math is here:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
...
Hey All,
Okay, so I have a viewController method that has some elements created with interface builder and some I coded myself.
I created a view in the IB...lets call it viewOne. I created a loop that creates buttons (through code) and places them on a separate view (viewTwo). This is done in a class method. However, I want the view I...
This is very rookie question. I have a UIToolBar at the bottom which is supposed to animatedly move up and down with key board when the UIKeyBoard is displayed. I got that working with the help of UIKeyBoard Notifications. The view we are talking about has split view enabled. When device orientation is landscape, both the views as column...
I cannot figure out what is obscuring my buttons. The first image shows the buttons that I want to click. They are clickable while the view is contracted like this, but when the view is expanded like in the second image, the buttons are no longer clickable. There seems to be another view obscuring the buttons. Any thoughts on what might ...
Hello. I have an iPad UIView subclass (we'll call LargerUIView) with which I do a bunch of drawing via drawRect: once asked. That all appears to be working, and looks the way I like. I'm at the point now of trying to get scrolling working (just in the horizontal to begin), yet when I try to scroll, what shows below is black (ie, appears ...
Title more or less says it all. In response to a touchesBegan event, my UIViewController recolours itself and adds some subviews.
It never receives the touchesEnded. I guess because the added subviews are somehow intercepting the event. I tried calling resignFirstResponder on the subviews to no avail.
The code works fine when I don...
Hi,
Any idea why after replacing one UIView with another (with the same Touch event logic), the 2nd one won't pick up any touch events?
I'm replacing them using:
[currentView removeFromSuperview];
NewView *newView = [[NewView alloc] init];
[window addSubview:newView];
Thank you all for your help :)
...
Hey there,
I might be crazy, but for some reason this problem is stumping me.
I have a view controller that is set to auto rotate to orientation. Inside I've got two subviews. One is a uibutton. All I want is for my button's origin to stay locked to the bottom-left in portrait and bottom-right in landscape (so it basically stays in ...
textfield.returnKeyTYpe = UIReturnKeyDone
So the above makes my Return button on the keyboard to say Done. I have seen Apps with Blue color button on the UIKeyBoard. Is that simple enough to do? How do I change the background color of the Return key?
...
I have two views, one view takes the whole screen, the second view covers only a little portion. What I want is for that second view to be on the first view (which I already have done), but the problem is, when I set values (in this case UILabel's) the label on the screen doesn't display that new value. I know for a fact the method get...
Hello, I have a problem...
In my view i have Textfield.If i move that TextField it should open iphone keyboard occupies.Extra TextFields doesn't display
Please help in this issue.
...
Hi everybody!
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't understand.
Having a WPF background i don't know what is going on here:
ViewModel has several properties, in which one is called SelectedRecord. This is a get only property and is defined like this:
public Culture SelectedRecord { ...
I'm trying to have 2 pickerviews in the same view. It works except for two things. If one pickerview has more rows than the other the app crashes when picking an item from the pickerview with more items. Also I created an NSLog for the pickerviews and the console shows that I'm picking two items at once when in fact i'm only dealing w...
Hi there. I have recently been rewriting some of my iphone app because a couple of users have said it was crashing on certain events.
The event in question is when I add a new XIB to the view using the following code
AddItemViewController * add_item = [[AddItemViewController alloc] initWithNibName:@"AddItem" bundle:[NSBundle mainBundle...
Hi,
I want to program an "Add"-Window to my application, much like the "Add Contact"-window in the Contacts app or the "Add City"-window in the Weather app.
My question is: how do I code the effect of sliding up that Contacts & Weather feature?
-- Ry
...
How can I use the default background image for a UIView?
...
Hi, in my application the first view is an UIView with a couple of uilabel and an uibutton to do the login.
I would to show an uinavigationcontroller with a table after the login, so with the action of the button.
I know how to set up a working Navigation Controller starting with the Xcode Template but i dont know how to load this as a "...
I'm loading a view like this:
if(commentSubmissionView == nil){
commentSubmissionView = [[CommentSubmissionController alloc] initWithNibName:@"CommentSubmissionView" bundle:nil];
}
[self.view addSubview:commentSubmissionView.view];
viewDidLoad and viewWillAppear in commentSubmissionView do not fire. Is there something else I n...
How to do like that? I don't know how to do..Help me.
...