0
votes
0answers
63 views

how to add one view to another view in iOS?

I want to make kids Shape Puzzle game. In which I have to drag one image and place that image to another view. like this https://play.google.com/store/apps/details?id=zok.android.shapes&hl=en I ...
0
votes
1answer
40 views

how to draw a rect in UIImage with this shadow effect?

I want to draw a rect in UIImage to highlight the area selected.I want the rect effect is like this: But what i draw is like this: And my drawing code is as follows: - (UIImage ...
1
vote
3answers
26 views

initialise view from NIB

I am trying to initialise a view from a NIB file onto my view controller on Storyboard. Here is what I did: drag a view controller onto storyboard, placed a UIView obj as a placeholder view and ...
0
votes
1answer
15 views

Using AutoLayout, how do I keep a UILabel in the same place when the navigation bar disappears?

I have a view controller with a UILabel in it that prints some words when a button is tapped. When the button is tapped, the navigation bar is set to hidden. So I tried taking the UILabel and giving ...
0
votes
0answers
13 views

UIPicker Moves To Bottom of View

I have something weird going on in my app that is causing me some issues. I am creating a screen where there are a few different options to change a label. The issue I am having is that a UIPicker ...
0
votes
2answers
38 views

Can I create a totally transparent UIView that receives touches?

I want to create a totally transparent UIView overlay (and it has subviews) to receives touches. I could set the alpha to a low value (like 0.02) to get an approximate effect. But I wonder is it ...
1
vote
1answer
31 views

How to correctly set background for retina?

May be the question is elementary, but I have a bug with setBackgroundColor. I have the UIView which contain UITableView. UITableView is clearColored. I'm trying to set background on UIView: ...
0
votes
0answers
27 views

Using renderInContext: for masks created by cgpaths

I recently found out that the renderinContext: method ignores any layer masks. I am trying to capture a video of my app's screen, in which I animate the path of a masked CALayer. To record the ...
0
votes
3answers
32 views

How to correctly set alpha of UIView? [iOS]

I have UIView with lots of subviews (UILabel, UITextView, etc.). If a set alpha 0.6 to main view all the subviews takes this alpha. How to set alpha separately of main view?
0
votes
1answer
15 views

UIImageView and Auto Layout in Code

I'm trying to use programmatic visual constraints to display a label and a button next to one another. However, the UIImageView used as the button's background is making the intrinsic size of the ...
1
vote
2answers
28 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
36 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
25 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
20 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
11 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 2 3 4 5 235
15 30 50 per page