UIView is an iOS class which is used to display all user interface elements. All UI elements are either subclasses of UIView or are contained within a UIView.
1
vote
1answer
9 views
How to setup a subclass of UIScrollView to respond to touch events?
I recently had a problem regarding not being able to register touches events (touchesMoved, etc) from within a UIScrollView. After talking with lots of people and reading tons of posts, it turns out ...
0
votes
0answers
7 views
Is there a tool to export a live UIView to a XIB?
Sometimes a developer avoids working with XIBs and Storyboards in favor of manually assembling a view hierarchy in code because doing it in code seems less cumbersome than becoming proficient with ...
1
vote
0answers
25 views
removeFromSuperview not releasing the view while using ARC
I am adding a subview to my finalview which is used to change prefrences on the app.
I add it like this from my finalview
getPrefrencesViewController = [[GetPrefrencesViewController alloc] init];
...
1
vote
2answers
17 views
iPhone: Make UIScrollView from UIView
I have a UIView with labels and textfields and I tested it in the simulator and noticed that I cannot scroll to see the rest of the view, how can I make the view into a UIScrollView and what do I need ...
0
votes
0answers
8 views
iPhone UIStoryboard view frame has all zero values during initWithFrame:
I started to work with a storyboard that uses autolayouts and am running into an issue where during initialization of some of my controllers the frames of these controllers have all 0 values: ...
0
votes
0answers
13 views
Is there anyway to make a photo collage function for ios?
I'm writing a photo editor demo that user can swipe horizontally or vertically to split the views to many small views they want, then users can drag the borders of each views to re-size the view. The ...
0
votes
0answers
13 views
How to debug infinite loop “crash” in Xcode for iOS involving CALayer and view layout during search?
My app is hanging during search in a table view.
For what it's worth, the view hierarchy is very complex, there are popovers involved as well as filters and search bars etc. I am reviewing all those ...
0
votes
1answer
10 views
Creating Custom UIView without using a XIB file
I am trying to create a view class to work with the flyout navigation component.
As of yet, I have not found a way to create a view and add subview's to itself.
Here is a sample view class that I have ...
0
votes
0answers
10 views
View controller's UIView frame weird behaviour
I've encountered a problem that drove me crazy. I've solved it, but my understanding of the matter is just not enough.
I've looked through documentation, but i guess i picked wrong topics, because ...
1
vote
0answers
35 views
UIView fills background when scrolling on a UITableView
I'm having a problem with my UITableView. A UIView in the cells (the light grey background) seems to fill the cell for no apparent reason when scrolling.
Here's how it should look:
Here's how it ...
-1
votes
1answer
16 views
Show an hidden view
I will ask you if you can help me to show some hidden views. Also in my app I've 2 hidden view: one on the left and the second one on the right.
I wanted to show this hidden view by using 2 button and ...
0
votes
0answers
8 views
Resize background color when resizing view?
I have a view with a background color. How to re-size the background color when the view change its size? My problem is even if the view is bigger, the background color size still the same size.
0
votes
1answer
24 views
Catch UIView content redraw
I inheritance UIView class, add UIButton and UIActivityIndicatorView to this view.
@interface MyCALayer : CALayer
@end
@implementation MyCALayer
- (void)renderInContext:(CGContextRef)ctx
{
...
0
votes
1answer
20 views
Can not get touch event when UIView outside of UITableViewCell
We have a table cell and a drop down list(which customized via table view). the problem is when we add drop down list to a table cell content view, and open it, drop down list cannot get touch event.
...
0
votes
2answers
26 views
pass slider value to subview
I have a UISlider placed in my main view and I have added a subview UIView (via interface builder) that I have associated with its own class SecondView. I need to pass the value of the slider to my ...
0
votes
0answers
14 views
Applying specific animation to text in view in objective c
I created in After Effects a bouncing text screen following a tutorial that I followed posted here:
http://www.youtube.com/watch?v=pTxCqwRXpVM
I would like to have this type of effect in my main ...
0
votes
0answers
13 views
Possible to Preload a UIView that contains a library of information?
Is is possible to have a UIView preloaded so that it will load faster when the user taps on button to load it? Currently I've got a library of informaiton that I'm attempting to load when the user ...
1
vote
0answers
37 views
drawing a tail for a speech bubble in iOS
I need to implement a speech bubble. I managed to get the main oval bubble (even the jagged shapes). Now I am trying to get the tail part. The tail should be
1. Resizable (extend/ rotate around the ...
0
votes
2answers
17 views
Apply PanGesture to uiview in another class with action
I have a ViewController iDragHomeViewController
and another
NSObject class iDrag
"iDragHomeViewController.m"
- (void)viewDidLoad
{
[super viewDidLoad];
UIView *dragView = [[UIView ...
1
vote
1answer
32 views
A library that wraps iOS animations the same way three20 wraps UI Classes
I found that three20 does a great job in simplifying grunt work when it comes to arranging and laying out buttons and views etc (amongst other things). I was wondering if there was something similar ...
0
votes
0answers
26 views
Swipe and partially flip UIView to menu bar from left or right in iOS
Hello EveryOne,
I am new to iOS programming. I am working on a project where i have to do some animation when user swaps on view to show the left side menu bar which contain buttons. My problem is ...
0
votes
2answers
31 views
self.view.subviews not showing buttons
I want to iterate through all of the subviews in my view, and do something for each UIButton.
This is the code i'm using (in the end of the viewDidLoad):
for(UIView* v in self.view.subviews)
{
...
0
votes
2answers
59 views
iOS - Casting UIView to UIButton/other views
I will be creating UIButton and other views programmatically. The buttons will be created inside custom class call ButtonBuilder. This builder class will be the subclass of BaseBuilder class. The ...
0
votes
0answers
20 views
How to limit a view panning just inside an other View?
I have a subview (the red bar) laid inside a view. I want to limit the panning area inside the parent view and only absolutely horizontal or vertical. And, of course not outside of the parent view.
I ...
0
votes
3answers
41 views
why self.view.frame and self.view.bounds are different when the devices rotate?
I want to do some layout change when the devices rotate. So I implement - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation ...
1
vote
0answers
18 views
How can you handle touching a link within a UIWebView when you have a UIView overlay directly on top of it?
I've been researching how to use a UIWebView embedded in a UIScrollView for a while now and cant seem to find an easy fix to my problem. I'm using a UIWebView because a UITextView, although allowing ...
1
vote
1answer
19 views
IOS, UIView, Detect Hidden State Change in Subview
Is there anyway to detect a hidden state change (or other change) in a sub view in a UIView (not UIViewController). Would like to detect this async somehow.
There are reasons for my madness.
0
votes
1answer
25 views
What's the mechanism of UIView Initial Display in Object C
I am a newbie learning "iPad and iPhone Application Development" course. In the demo of lecture 5, we have some code like this
#import "HappinessViewController.h"
#import "FaceView.h"
@interface ...
0
votes
1answer
47 views
NSArrayM insertObject:atIndex:]: object cannot be nil'
After a lot of search, and tries with some solutions on stackoverflow, i didn't find any answer which could solve my error :
I have a UIViewcontroller, who's name is WorldViewController. In this ...
0
votes
0answers
20 views
UIView animation needs to be called 2 times to work
Im trying to animate a UIView with this code:
[self.view bringSubviewToFront:RegNrView];
[UIView animateWithDuration:.5 animations:^{
RegNrView.frame = CGRectMake(0, 0, 320, 460);
}
...