Questions tagged [loadview]
90 questions
0
votes
0 answers
What are the difference between load view and executable view of a program?
I was wondering what the differences between load view and executable view of a C program were.
I'm thinking executable view is the binary that is in the executable file. For load view I had a harder time thinking of what to come up with but thought…

Jdog
- 35
- 8
0
votes
2 answers
UIScrollView won't show in UIView
My app is building purely programmatically on UITabBarController above a UINavigationController, which are both declared in my AppDelegate. Inside my navigationcontroller, I'm showing a UIViewController, a custom class. This custom class should show…

Stian Storrvik
- 2,199
- 2
- 14
- 21
0
votes
2 answers
How to pass multiple arrays/variables into DOMPDF in Laravel?
I try to pass multiple variables, an arrays and a single variable. This is what I code:
tanggal_arsips = $req->tanggal_arsip;
$nama_file = "Laporan Pengarsipan[".$tanggal_arsips."].pdf";
$antrian = DB::table("antrian_sp AS a")
…

Muhammad Haryadi Futra
- 411
- 4
- 9
- 21
0
votes
1 answer
didAddSubview not working in ViewController
If I create project using a View-based application template in Xcode using the iPhone SDK version 4.2 and add just this Objective-C code to the ViewController.m, right after | #pragma mark - View lifecycle | it does not trigger the log message in…

littleM
- 21
- 3
0
votes
1 answer
Redraw NSTableView with new data from file when NSViewController re-loaded?
I have a Mac OS X Document based app that has multiple NSViewControllers that I switch between and each view displays data from plist files in NSTableViews based on the user selections in the previous NSViewController's NSTableView. The problem I…

James Testa
- 2,901
- 4
- 42
- 60
0
votes
2 answers
Where can I specify which UIView is used for the view property of a UIViewController?
I want to set the view property of a UIViewController at runtime. I have an .xib file with two views, and I want my UIViewController subclass that owns the .xib file to decide which UIView to use at runtime. I thought I could do this in loadView…

Marty
- 5,926
- 9
- 53
- 91
0
votes
1 answer
Loading view inside a Library, issues with cached vars
I am trying to implement a widgets library using load->view. I know I can use include to call directly the file and avoid the vars cache issues but just wondering why it does not work.
Here is how I have structured my code:
My Controller:
class Page…

Eduardo
- 1,781
- 3
- 26
- 61
0
votes
1 answer
Calling loadView for UITableViewController subclass
I make an instance of a subclass of UITableViewController without a xib. I am not going to be using a xib file. I build the data in the -(id)init routine. I create the data for the table in the -(id)init function, and use the methods of the…

StoneBreaker
- 723
- 10
- 19
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
0 answers
iOS button frame incorrect on iPhone 6 simulator, works on iPhone 4s
In my view controller, my view is initialized in loadView method:
- (void)loadView
{
self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self loadViewController];
[self.view setBackgroundColor:[UIColor…

Hetal Vora
- 3,341
- 2
- 28
- 53
0
votes
1 answer
setBackgroundColor crashing when loadView implemented for ViewController used for UITabBarController
I have a view controller which is used in appDelegate.m as part of a tabBarController (code snipped below)
self.window=[[UIWindow alloc ]initWithFrame:[[UIScreen mainScreen]bounds]];
UITabBarController *baseTab=[[UITabBarController alloc]…

rajesh sukumaran
- 19
- 1
- 10
0
votes
1 answer
loadView is called each time .view notation is used
I have a view called MyViewController, that I initialize from a xib file.
Its loadView method looks like this:
- (void) loadView
{
[super loadView];
// some initializations
}
I create it from some other view controller like this
-(void)…

Nava Carmon
- 4,523
- 3
- 40
- 74
0
votes
2 answers
Initializing Views(button, label, etc) in -init or -loadview
Im curious, where is the best option to allocate/init, set attributes of views (uibutton, uilabel, uitextfield, initializing variables, etc).
This is in regards to developing an app strictly programatically. I see some cases where these views have…

s_dev
- 245
- 5
- 17
0
votes
0 answers
ViewController's View display late after Complete process of viewWillAppear so can not display progressbar
I'm working on Contact App so in my home screen if user first time open the app than it take permission of contact access and if not first time than it only fetch whole contact and i have up to 500 contacts.
- (void)viewWillAppear:(BOOL)animated
{
…

JAY RAPARKA
- 1,353
- 2
- 13
- 33
0
votes
1 answer
iPhone - Make loadView entries fill up parent view?
I have a loadView call that basically places one view at the top (like a header) and one at the bottom (like a footer). It's possible via a passed in parameter to not have a header or a footer, to hide them later, or to resize the view. I have all…

Eli
- 4,874
- 6
- 41
- 50