programmatically-created Questions
7
Solved
I am trying to get an integration test working. In the test initialization phase I attempt to spin up a Redis server from a docker image.
var p = new Process { StartInfo = new ProcessStartInfo("do...
Velure asked 5/12, 2018 at 20:42
11
Solved
UPDATE:
I also tried implementing UITextViewDelegate delegate and then doing in my controller:
- (BOOL)textViewShouldEndEditing:(UITextView *)textView
{
[textView resignFirstResponder];
return ...
Leisured asked 9/4, 2012 at 17:31
27
Solved
I have a very long activity with a scrollview. It is a form with various fields that the user must fill in. I have a checkbox half way down my form, and when the user checks it I want to scroll to ...
Coulson asked 26/7, 2011 at 14:31
3
Solved
I've encountered a problem where I had to load more than 200 new users into my django app and right away send them a password reset email. This had to happen only once, done only by me and run quie...
Trachoma asked 6/5, 2015 at 6:13
10
I know how to add an IBAction to a button by dragging from the interface builder, but I want to add the action programmatically to save time and to avoid switching back and forth constantly. The so...
Doroteya asked 30/4, 2011 at 17:24
3
Solved
I have two scheduled tasks on my computer. They both open Excel files and run a macro & are pretty similar in what they do. They both work on my computer. However I moved the scheduled tasks on...
Haemato asked 3/9, 2014 at 7:11
3
What I'm looking for is a "best-practices-approved" alternative
to the following workaround / workflow. Consider
that I have a bunch of columns of similar data, and would like to perform ...
Gca asked 18/7, 2014 at 20:26
4
Solved
I am trying to add tap gesture for a dynamically created UILabel in a function in swift 4, but it is not firing UITapGestureRecognizer function. it is working when i add tap gesture from viewDidLoa...
Judy asked 14/2, 2019 at 12:17
34
Solved
How can I create a basic UIButton programmatically? For example in my view controller, when executing the viewDidLoad method, three UIButtons will be created dynamically and its layout or propertie...
Tailspin asked 4/9, 2009 at 11:44
1
Solved
I have created a small demo playground to get this working before adding the view to my app.
I have a scroll view that is going to contain a number of buttons to scroll through horizontally. I kno...
Wagonlit asked 4/8, 2018 at 17:39
2
Solved
In my code, I add input elements like radioButtons, checkboxes etc to my Layout programmatically.
The problem is, that the style of those elements is not the default style that you would get, when ...
Scarabaeid asked 20/1, 2015 at 13:45
2
Solved
I want to place a collectionView programmatically between a navigationBar, a label and the tabBar on the bottom.
I do not want to have any spacing between the different parts, how do I correctly a...
Sickle asked 9/4, 2018 at 21:46
1
So, I have opted to using no storyboards in my messages extension sticker pack. The iMessage app comes with a storyboard file and a MessagesViewController.swift. I created 2 files named CollectionV...
Aldis asked 3/11, 2017 at 0:5
3
Solved
Hello I am trying to create a label programmatically and add NSLayoutConstraints so that it is centered in the superview regardless of screen size and orientation etc. I have looked but just can't ...
Fabien asked 28/10, 2016 at 6:21
2
Solved
I am using iCarousel and I have to create my own button. I want to pass data from the button made programmatically to another view, but I don't have a segue identifier because I created the button ...
Septum asked 27/1, 2017 at 3:32
3
Solved
I'm trying to add a UITextView to UIStackView programatically, but it doesn't appear on the screen.
When I check in Debug View Hierarchy, it is in the view hierarchy and it has some constraints b...
Chianti asked 3/11, 2015 at 11:4
2
Solved
I'm adding Buttons programmatically and the number of Buttons depends on some conditions. To add rules for RelativeLayout.LayoutParams that Buttons be aligned to the top of each other I need to set...
Crepitate asked 18/3, 2016 at 0:51
3
Solved
I want to make a custom button like this program does with perhaps a radial gradient.
I subclassed view, and draw three shape drawables and then draw the text. the text seems off center, so I tri...
Peptide asked 4/12, 2015 at 10:34
1
Solved
Is it possible to create an MP4 video on a browser through JavaScript? (I know it is now possible in Flash with FlashyWrappers)
Ideally, I will be feeding it with image frames (raw, PNG or an...
Crossly asked 10/12, 2015 at 10:54
2
Solved
I want to set label text as System Thin. Read in StackOverflow and found an answer like this:
labelDescriptionView.font = UIFont(name: "System-Thin", size: 15.0)
but it did not work. How c...
Blockbuster asked 30/11, 2015 at 13:39
1
I am trying to create a chat application where in I have made a custom UITableViewCell using only code. So it is like a bubble with Name, message and time labels inside the bubble in the same order...
Gynoecium asked 7/9, 2015 at 9:35
2
Solved
Note 1: This question pertains to adding a UISearchController's search bar outside of the table view it updates - NOT as the table view's header.
Note 2: Some trial and error led me to a solution....
Guitar asked 8/7, 2015 at 4:26
7
Solved
I have a UIView that I'd like to add several bits of text to. I have used a UITextView but I think that's overkill as it doesn't need to be editable. I thought about using a UILabel or a UITextFiel...
Nieves asked 9/7, 2010 at 4:20
9
Solved
I want to programmatically add multiple UIButtons to a view - the number of buttons is unknown at compile time.
I can make one or more UIButton's like so (in a loop, but shorted for simplicity):
...
Stabile asked 15/4, 2010 at 14:44
3
Solved
I'm trying to, as the title say, set up a UITableViewController programmatically. After a few hours of trying I hope someone can help me. And, yes, I hve checked out other posts on this matter:
im...
Wynd asked 7/6, 2014 at 15:34
1 Next >
© 2022 - 2025 — McMap. All rights reserved.