Questions tagged [loadview]
90 questions
0
votes
1 answer
AppDelegate can't add subView
Since appDelegate does not have a view, just window, its hard to figure out how to load a view from it. My problem has for long been that when didReceiveLocalNotification fires i cant load a new view with that event. I have been working around it…

Kristoffer Frisell Jarnevid
- 23
- 2
- 8
0
votes
1 answer
Cocoa: loading a view from within the NSViewController class
As I understand it, the view of a NSViewController class must be loaded before anything can be changed in the view through setters and getters. The problem is, the view in the controller is supposed to display a countdown, so the view controller…

Elbimio
- 1,041
- 2
- 10
- 25
0
votes
1 answer
loadView after popViewController
Alright, so I have this project with 2 ViewControllers connected with eachother with a NavigationController. When I navigate to each VC it all loads properly and my loadView method is called as proper. But when I navigate back this loadView method…

Totumus Maximus
- 7,543
- 6
- 45
- 69
0
votes
1 answer
Adding custom UIView to UIViewController in - (void)loadView (Objective-C)
I am taking a programming class (for noobs) and I need to create the UIViewController graphViewController's view programmatically (without interface builder).
The view is simple, it only consists of an IBOUtlet which is an instance of a UIView…

Caborca87
- 187
- 1
- 16
0
votes
1 answer
Table data doesn't reload in UITableViewController
This code works: [self.tableView reloadData], but if I extend the loadView method of UITableViewController like this:
- (void) loadView {
[super loadView];
float headerHeight = 80;
UIView *tableV = self.tableView;
CGRect tableFrame =…

Artur Gurgul
- 396
- 4
- 21
0
votes
0 answers
swift 5 UIswitch value change was not working when using loadview method
I am following this example.
@IBAction Func DarkButton(_sender:UISwitch) {
if (sender.isOn) {
Theme.darkTheme() self.loadView()
} else {
Theme.lightTheme() self.loadView()
}
}
I have lightTheme() and darkTheme()…

mk2019
- 1
- 1
0
votes
1 answer
laravel loadview pdf output not same as html
please i need help
i have my html code which working very fine ,and trying to loadview it as pdf stream
but the output pdf file , not same as html , and text not above image , but get below it
my controller code
public function pdfdownload($id)
{
…

M.Hossam
- 3
- 5
0
votes
2 answers
Creating Views without IB
It's pretty embarrassing asking this because I've been building apps for a while now. In the past I've always used Interface Builder to set up my views etc.
Here is my loadView:
- (void)loadView {
UIView *splashView = [[UIView alloc]…

Dan Hanly
- 7,829
- 13
- 73
- 134
0
votes
3 answers
How to load view in appdelegate?
I am checking internet connection availability in application delegate. But instead of displaying alert view for no internet connection, i need to load a view or addsubview to the application. Also i need to remove that view in internet connection…

Sameera Chathuranga
- 3,638
- 3
- 27
- 48
0
votes
7 answers
iPhone App crashing in loadView method when creating a UIButton
Why does the following crash my app whenever this view is loaded?
-(void)loadView {
UIButton *chooseSubjectButton = [[UIButton buttonWithType:UIButtonTypeDetailDisclosure] retain];
[chooseSubjectButton addTarget:self…

joshim5
- 2,292
- 4
- 28
- 40
0
votes
1 answer
Should I add an UIDatePicker in viewDidLoad or in loadView?
Where is it proper to add an UIDatePicker? Should I add it in viewDidLoad? Or in loadView?
This UIDatePicker should be a subview of the main view, and will be displayed the entire time that this viewController's view is displayed.
Thank you!

joshim5
- 2,292
- 4
- 28
- 40
0
votes
1 answer
How to load selected function from master template in codeigniter
Is it possible to load a selected method only in my Master Template? I want to load only the header and some scripts from my master and avoid the remainder of the template.
This is my controller for my login which I want to load only the header and…

cdt
- 135
- 1
- 1
- 9
0
votes
1 answer
bringSubViewToFront , sendViewToBack , Interface Builder , help !
If I have the views added in Interface Builder and not as addSubView in program
Can Use bringSubViewToFront , sendViewToBack?
do I need to define loadView in order to use them
Because I am trying to use it in ViewDidLoad but it returns undefined…

Dina
- 467
- 4
- 18
0
votes
1 answer
constrain self.view declared in func loadview to a partial area of the view controller
My code below subclass canvas for drawing propetries. I am trying to constrain canvas to a specific area in viewdidload. The problem is that func loadView is preventing the constraints in viewdidload from working. In the debugg area it states Unable…
user12274342
0
votes
1 answer
Loading/dismissing a Progmatically (non-xib) View via UIButton
Hey all - last dumb question (I hope)
I've got a situation whereby the following happens.
Progmatically created view (because it's easiest for what I'm doing)
User taps button, Xib based view appears using following code to load the Xib based view…

David26th
- 401
- 2
- 12
- 26