Tag: view

56 votes
21 answers
339 views
Giving UIView rounded corners

My login view has a subview which has a UIActivityView and a UILabel saying "Signing In…". This subview has

avatar
Elicia
0 1 0 9
asked 07 September, 2021
67 votes
17 answers
1.4K views
How to tell if UIViewController's view is visible

I have a tab bar application, with many views. Is there a way to know if a particular UIViewController is curr

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
59 votes
30 answers
1.1K views
Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy

Just started using Xcode 4.5 and I got this error in the console: Warning: Attempt to present < finishV

avatar
Percy
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
414 views
Why is there extra padding at the top of my UITableView with style UITableViewStyleGrouped in iOS7

Starting in iOS7, there is additional space at the top of my UITableView's which have a style UITableView

avatar
Venice
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
736 views
Placeholder in UITextView

My application uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can

avatar
Corey
0 1 0 9
asked 07 September, 2021
62 votes
30 answers
2.3K views
Eliminate extra separators below UITableView

When I set up a table view with 4 rows, there are still extra separators lines (or extra blank cells) below th

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
2K views
How can I disable the UITableView selection?

When you tap a row in a UITableView, the row is highlighted and selected. Is it possible to disable this so ta

avatar
Joseph
0 1 0 9
asked 07 September, 2021
62 votes
28 answers
724 views
Using Auto Layout in UITableView for dynamic cell layouts & variable row heights

How do you use Auto Layout within UITableViewCells in a table view to let each cell's content and subview

avatar
Freida
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
620 views
How can I make a UITextField move up when the keyboard is present - on starting to edit?

With the iOS SDK: I have a UIView with UITextFields that bring up a keyboard. I need it to be able to: Allow s

avatar
Dario
0 1 0 9
asked 07 September, 2021
60 votes
18 answers
393 views
iOS 7 Status bar with Phonegap

In iOS 7, Phonegap applications will appear underneath the status bar. This can make it difficult to click on

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
838 views
Yii: Render action using different layout than controller&apos;s layout

In Yii, is there a way to render a single action using a different layout than that defined for the controller

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
49 votes
8 answers
2.8K views
URL in Yii2 GridView

I have this code: <?php echo GridView::widget([ 'dataProvider' => $dataProvider, 'fi

avatar
Tana
0 1 0 9
asked 07 September, 2021
56 votes
8 answers
446 views
Yii2 data provider default sorting

In Yii 1.1 this code works for default sorting: $dataProvider = new CActiveDataProvider('article',a

avatar
Roger
0 1 0 9
asked 07 September, 2021
49 votes
19 answers
1K views
How to add constraints programmatically using Swift

I'm trying to figure this out since last week without going any step further. Ok, so I need to apply some

avatar
Corrin
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
3.1K views
How would I create a UIAlertView in Swift?

I have been working to create a UIAlertView in Swift, but for some reason I can't get the statement right

avatar
Nidia
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1K views
UIScrollView Scrollable Content Size Ambiguity

Fellow devs, I am having trouble with AutoLayout in Interface Builder (Xcode 5 / iOS 7). It's very basic

avatar
Stacia
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
2.8K views
iOS 8 UITableView separator inset 0 not working

I have an app where the UITableView's separator inset is set to custom values - Right 0, Left 0. This wor

avatar
Trudy
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
714 views
Passing data between view controllers

I'm new to iOS and Objective-C and the whole MVC paradigm and I'm stuck with the following: I have a

avatar
Vi
0 1 0 9
asked 07 September, 2021