How can I blur area? [duplicate] - objective-c

This question already has answers here:
How to apply blur to a UIView?
(5 answers)
Closed 9 years ago.
I have a UITableView and UIView (orange). I need that when I scroll a table, under orange area my table has a blurred. Can everybody help me? Thanks.

You could do it like described here: Apply blur to UIView
But blurring is computationally intensive, and scrolling performance will most likely be bad.

Make the orange view over the tableview, then set it's opacity.

Related

Objective-C continuous horizontal scrolling text [duplicate]

This question already has an answer here:
How to make marquee UILabel / UITextField / NSTextField
(1 answer)
Closed 8 years ago.
is it possible to create continuous horizontal scrolling for UILabel in Objective-C.
The code in HTML would look like this, so you can get a better idea what I'm talking about.
<marquee behavior="scroll" direction="left">Scrolling text goes here</marquee>
Thanks!
There's no built in control that provides this functionality. You may want to take a look at the open source project MarqueeLabel, which is a subclass of UILabel that adds support for this effect.

Table View not stretching vertically iPhone 6 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
The tableview isn't stretching all the way vertically in iPhone 6 or iPhone 6 Plus.
Any ideas why this is happening? Thanks!
Storyboard:
UPDATE:
This question was actually really helpful in another thing to check for as to why the tableview was getting cut off: Why is my UITableView cut off in iOS 7?
There's a whole bunch of things you want to check for if your Table View Cell are getting cut off:
- are they pinned to superview or content view?
- are the constraints such that you are cutting off content without knowing it?
- is a navigation bar or tab bar cutting off content?
- check the auto resizing mask or add one if need be settingsTable.autoresizingMask &= ~UIViewAutoresizingFlexibleBottomMargin;
And multiple other reasons. Its tricky, so if you come across this Q+A and need help, just drop a note and will help!
Select your tableView and pres Pin (a litte square icon with lines on the sides down in Xcode). Then add the bottom constraint (click here, it will turn red) and set value 0. Enjoy

UIView center, frame [duplicate]

This question already has answers here:
How to test if a point is in a view
(5 answers)
Closed 9 years ago.
I am wondering how to check if a view's center is in the frame of another UIView?
Example: if I have a circle which can be dragged by your finger and it's center point gets dragged to a square's frame some code gets executed?
Thanks in advance,
Best regards!
You should have a look at Apple's CGGeometry Reference. In particular, you could use CGRectContainsPoint.

XCode How to change the text of a button when another button is pressed [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to change UIbutton title once a UIbutton is pressed?
I want to change the text of a UIButton when another UIButton is pressed any idea?
This question has already been answer here. This did not take much to find, some people can be a bit weird about not doing much research into your questions so be prepare to get a lot of duplicated questions and people giving you bad rep for it.
Please read the faq for help on making a good question.

Rounded labels in Interface Builder...? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How do I create a round cornered UILabel on the iPhone?
how to use rounded corner label in iphone,UILabel Round Corners
Still pretty much getting started with Xcode and Interface Builder. I made a UI screen with several 'label' fields to display random data. But when I change the label color from the screen background color, it looks awful because they're perfect squares. Is there a way to round the corners for labels?
Thanks!
Quoting from another SO answer:
iPhone OS 3.0 and later supports the cornerRadius property on the CALayer class. Every view has a CALayer instance that you can manipulate. This means you can get rounded corners in one line now:
That post has a pretty detailed description of how to implement this behavior.