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 ...
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];
...
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
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 ...
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.
...
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
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);
}
...
0
votes
2answers
36 views
UIView allocated programmatically not allocated at the x and y i have given. Going beyond that.
Hii every one i have allocated the UIView programmatically, Like,
detailView = [[UIView alloc] initWithFrame:CGRectMake(50, 100, 200, 200)];
detailView.alpha = 0.95;
...
0
votes
4answers
35 views
Make UIView Appear Before Network Operation
I have a seemingly simple problem that I cannot for the life of me seem to figure out. In my iOS App, I have a UICollectionView that triggers network operation upon tapping it that can take a few ...
1
vote
1answer
23 views
Implementing a custom UISwitch using a library - what am I doing wrong that's causing the size issues?
I'm using BMXSwitch to implement a custom UISlider, hopefully in the end looking something like this:
Where the animation is pretty much identical to the default UISwitch, where the knob moves, ...
0
votes
1answer
22 views
Radial gradient background programmatically in UIViewController
I researched a lot but I cannot find a proper solutions. I want to add a radial background to a UIViewController which fits to a iPhone 4 and iPhone 5 screen (view See attached screenshot). The ...
2
votes
1answer
20 views
Custom view with data source. When should the data source be queried for the first time?
I am making a custom UIView that has a datasource much like a UITableView. When should this datasource be asked for data for the first time and in which method of my UIView subclass?
Right now I ...
1
vote
0answers
27 views
CALayer - strange drawInContext bug
I'm currently having a very strange bug with regard to a CALayer subclass. This CALayer subclass is responsible for drawing a UI element, and is contained inside of a custom UIView class. When the ...
1
vote
1answer
25 views
My Views are only 320px across and I get poor resolution images on iPhone 5?
I have a big problem that is causing all sorts of complications. I want to make native-resolution graphics for my iPhone 5 app using the 326ppi Retina Display quality graphics. However, all of my ...
0
votes
1answer
27 views
How do you balance Auto Layout with creating frames?
When I'm creating a frame in iOS with CGRectMake(), be it setting the frame property or using initWithFrame:, it asks for the x, y, width and height. I supply these.
But with Auto Layout, I'm next ...
4
votes
1answer
53 views
+50
Why when I change the image of the UIImageView while panning the cell does the whole view reset for a second?
Here's a video of it happening:
http://cl.ly/3V0D3U1m3w0E
Basically, if I change the image property of the UIImageView (the X) while I'm panning it brings all the controls in the view back to their ...
0
votes
0answers
21 views
touchesCancelled called after a small swipe
I have seen similar questions but none were helpful for this.
I have created a view in interface builder and assigned it to a uiview subclass I created. I dont have any subviews in it and the view is ...
0
votes
0answers
8 views
Rotate UIView by transformation breaks NSAutoresizingMaskLayoutConstraint
I'm using AutoLayout on some views of my project but not on the rotated view. When I add rotate transformation to my view it breaks the aspect ratio and sometimes breaks the ...