Questions tagged [programmatically-created]

Any object in an application created using a computer program rather than created manually using something in the userspace.

General Definition

Any object in an application created using a computer program rather than created manually using something in the userspace.

GUI Elements

In general, elements are declared in inside their accompanying tags in / files or in any other derivatives ( , , , , , and many others).

Programmatically created are those elements that are coded in contexts that need to be compiled to take effect at . They could be created at by a click of a as an example, where they would be coded inside a click listener for that .

438 questions
0
votes
3 answers

Issue with programmatic added views

Hi i am programmaticaly adding some views like this let xPos = (self.view.frame.size.width - 200)/2 self.headerLabel = UILabel(frame: CGRect(x: xPos, y: 50.0, width: 200.0, height: 100.0)) self.shopButton = UIButton(frame:…
0
votes
3 answers

Initialize a button with a title from a Label in swift

I want to initialize a button's title from a Label. I have this code: let smallSquare = CGSize(width: 30, height: 30) let button = UIButton(frame: CGRect(origin: CGPointZero, size: smallSquare)) But, I do not know how I can initialize a title with…
SphynxTech
  • 1,799
  • 2
  • 18
  • 38
0
votes
1 answer

UITableViewCell Width Issue while in editing mode

I am developing Drag or Reorder List View using UITableview. I am not using storyboard for this and doing whole functionality programmatically.Draging functionality is working but UITableViewCell Putting Blank Space at Left and Right side of it as…
Hiren
  • 240
  • 1
  • 14
0
votes
0 answers

Function application() in iOS swift crashes if it takes too long to load

I have an application where there are two kinds of users. So I check if a user is logged in or not. If the user is logged in, I see what kind of user it is. Else, I go to the log in page. However, the application crashes, and I think it is because…
HDev
  • 29
  • 3
  • 3
0
votes
1 answer

Setting constraints on UITableView inside UIView

I have a UIViewController that has some base controls and in the center has a UIView (as container of swappable ui controls). I swap out the UI controls in this center UIView (container) depending on what the user is trying to do. All of the UI…
john
  • 505
  • 1
  • 7
  • 15
0
votes
1 answer

Can't create map programmatically in Xcode (Big Nerd Ranch IOS Programming: chapter 6 p97)

I'm trying to create a map programmatically but all I get is a black screen once I run the app. Re page 97 in the Big Nerd Ranch iOS Programming 5th Edition, in chapter 6 'Creating a View Programmatically' I entered the following code in…
cget
  • 370
  • 1
  • 4
  • 21
0
votes
4 answers

get TextView and EditText from Programatically created

i create 1 LinearLayout inside LinearLayout, that contains 1 EditText and 1 TextView programmatically and i need to get text from EditText and TextView. And this is my code: main.xml:
wdyz
  • 185
  • 4
  • 19
0
votes
3 answers

How create TextView programatically with this specifics Attributes?

I'm currently creating TextView like that: LinearLayout myLayout = (LinearLayout) activity.findViewById(R.id.ll1); LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, …
GMX
  • 950
  • 1
  • 14
  • 29
0
votes
0 answers

Disable KeyGuard in Android Marshmallow

I've had the same Question open for 9 months and haven't had any replies, so I'm hoping someone can help me this time. I want to write an intent that keeps my phone unlocked while connected to my home wifi. I've researched quite alot and kept…
0
votes
1 answer

Add more item into ListView inside Fragment

As ussual I can add more item into ListView in the easy way. But, the problem goes here when my ListView inside of Fragment. public class QuestionFragment extends Fragment { ExaminationActivity activity; Question question; TextView…
0
votes
1 answer

android distribute evenly imageview android programatically

I am trying to distribute imageviews evenly on a screen, the Imageviews are different size and In the example below I want to have 12 imageviews, 4 in each row and 3 rows. The problem I get is that the just clump together to the left and every…
0
votes
0 answers

Creating a TableView Programmatically with multiple cell in swift

As I am creating a TableView programmatically with multiple cell and in each cell having UICollectionView, UITableView, UITableView.... but I am not able to find the error and every time when I run the program it Shows " Command failed due to…
0
votes
2 answers

Detect which button is pressed? (then action)

That's my very first post on SOF. I'm a new programmer at objective-c. Heres the "problem" i'm dealing with I created 2 UIbutton : one to pull an UIImageView from the top of the screen and the other to push it back. I have the code for the action**…
0
votes
0 answers

Programmatically set ValueChangeListener for selectOneMenu

I create two SelectOneMenu in JSF: SelectOneMenu menu = new SelectOneMenu(); menu.setId("MenuSelect1" + ctrlCenterResultModel.getId()); UISelectItems item = new…
0
votes
2 answers

iphone: UIScrollView Paging enabled with NO ZOOM and NO PREVIEW

i want to implement a UIScrollView where paging is enabled and i can just flick through some images. Thats all i want to be able to do for now. I have done this so far in interface builder: can someone help? I dont know how to do the rest. Can…
Pavan
  • 17,840
  • 8
  • 59
  • 100