¡@

Home 

2014/10/15 ¤U¤È 10:15:51

iphone Programming Glossary: views

UIScrollView horizontal paging like Mobile Safari tabs

http://stackoverflow.com/questions/1220354/uiscrollview-horizontal-paging-like-mobile-safari-tabs

Apple provided example PageControl shows how to use a UIScrollView for horizontal paging but all views take up the whole screen width. How do I get a UIScrollView to show some content of the next view like.. as follows Create a UIView subclass i.e. ClipView that will contain the UIScrollView and it's subviews. Essentially it should have the frame of what you would assume the UIScrollView would have under normal..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

UIViewAutoresizingFlexibleHeight It works great out of the box for table views however if your app used pixel perfect layout for displaying content then your best bet would be to..

How to detect iPhone 5 (widescreen devices)?

http://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices

c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities.. question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt.. use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt any screen size. That's not very hard read some documentation about that. It will..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

7 Apple docs for UIActionSheet UIActionSheet is not designed to be subclassed nor should you add views to its hierarchy I recommend against trying to customize the contents of an ActionSheet as it can lead..

How do I detect when someone shakes an iPhone?

http://stackoverflow.com/questions/150446/how-do-i-detect-when-someone-shakes-an-iphone

event BOOL canBecomeFirstResponder return YES @end You can easily transform any UIView even system views into a view that can get the shake event simply by subclassing the view with only these methods and.. resignFirstResponder super viewWillDisappear animated Don't forget that if you have other views that become first responder from user actions like a search bar or text entry field you'll also need..

How to customize the callout bubble for MKAnnotationView?

http://stackoverflow.com/questions/1565828/how-to-customize-the-callout-bubble-for-mkannotationview

control the callout itself the mapkit only provides access to the left and right ancillary callout views but no way to provide a custom view for the callout bubble or to give it zero size or anything else... touched on my point on the map selected it or touched a point that is not part of my annotation views delected it without having the default callout bubble view show up. I tried going down a different path..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

set the iPhone orientation I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out I would like.. in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out I would like to force the rotation to be set to portrait. There is an undocumented property setter.. only portrait in View 2. I have already implemented shouldAutorotateToInterfaceOrientation for all views but if the user is in landscape mode in View 1 and then switches to View 2 I want to force the phone..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

of leaving contexts open though Recycle page objects by doing pointer swaps or destroy unused views Close any open Contexts as soon as you don't need them on receiving memory warnings release and reload..

How to determine the content size of a UIWebView?

http://stackoverflow.com/questions/3936041/how-to-determine-the-content-size-of-a-uiwebview

different single page content. I'd like to find out the CGSize of the content to resize my parent views appropriately. The obvious sizeThatFits unfortunately just returns the current frame size of the webView...

iOS SDK - Programmatically generate a PDF file

http://stackoverflow.com/questions/4362734/ios-sdk-programmatically-generate-a-pdf-file

drawing a PDF file. I would like to programmatically create a PDF using various objects from views throughout my app. I am interested to know if there are any good PDF tutorials around for the iOS SDK.. renders each subview. For my project I need to support only Label ImageView and View for nested views void addObject UIView view if view nil view.hidden if view isKindOfClass UILabel class self addLabel..

iPhone - Backgrounding to poll for events

http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events

lot of backgrounding. but remember be very spare with CPU time. And save all data to restore your views your app will be terminated some time later. To make it appear still running you must jump back into..

Tab bar controller inside a navigation controller, or sharing a navigation root view

http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root

navigation item and the individual tab's table controller's need to push their respective detail views to self.tabBarController.navigationController instead of self.navigationController . iphone cocoa touch..

iPhone: How to load a View using a nib file created with Interface Builder

http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder

my QuestionManagerViewController. This is an empty view controller that can load different views depending on the question that needs to be answered. The way I'm doing this is Create the Question1View..

UIScrollView horizontal paging like Mobile Safari tabs

http://stackoverflow.com/questions/1220354/uiscrollview-horizontal-paging-like-mobile-safari-tabs

UIScrollView shows some of the next view's content. The Apple provided example PageControl shows how to use a UIScrollView for horizontal paging but all views take up the whole screen width. How do I get a UIScrollView to show some content of the next view like mobile Safari does iphone cocoa touch share improve this.. 's frame. My solution when I had to do this very recently was as follows Create a UIView subclass i.e. ClipView that will contain the UIScrollView and it's subviews. Essentially it should have the frame of what you would assume the UIScrollView would have under normal circumstances. Place the UIScrollView in the center of the..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

to expand in both directions. view.autoresizingMask UIViewAutoresizingFlexibleWidth UIViewAutoresizingFlexibleHeight It works great out of the box for table views however if your app used pixel perfect layout for displaying content then your best bet would be to re imagine the content so that it can accommodate varying heights...

How to detect iPhone 5 (widescreen devices)?

http://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices

then apply the view. How should I do that iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt any screen.. iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt any screen size. That's not very hard read some documentation.. you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt any screen size. That's not very hard read some documentation about that. It will save you a lot of time. iOS 6 also offers new features about..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

uipickerview share improve this question Update for iOS 7 Apple docs for UIActionSheet UIActionSheet is not designed to be subclassed nor should you add views to its hierarchy I recommend against trying to customize the contents of an ActionSheet as it can lead to serious invalid context errors in iOS 7. I just spent..

How do I detect when someone shakes an iPhone?

http://stackoverflow.com/questions/150446/how-do-i-detect-when-someone-shakes-an-iphone

motionEnded withEvent super motionEnded motion withEvent event BOOL canBecomeFirstResponder return YES @end You can easily transform any UIView even system views into a view that can get the shake event simply by subclassing the view with only these methods and then selecting this new type instead of the base type in IB.. animated void viewWillDisappear BOOL animated shakeView resignFirstResponder super viewWillDisappear animated Don't forget that if you have other views that become first responder from user actions like a search bar or text entry field you'll also need to restore the shaking view first responder status when the..

How to customize the callout bubble for MKAnnotationView?

http://stackoverflow.com/questions/1565828/how-to-customize-the-callout-bubble-for-mkannotationview

when the annotation icon is touched . I want to be able to control the callout itself the mapkit only provides access to the left and right ancillary callout views but no way to provide a custom view for the callout bubble or to give it zero size or anything else. My idea was to override selectAnnotation deselectAnnotation.. bubble is not drawn . So I have no way of knowing if the user touched on my point on the map selected it or touched a point that is not part of my annotation views delected it without having the default callout bubble view show up. I tried going down a different path and just handling all touch events myself in the map and..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

there a documented way to set the iPhone orientation I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out I would like to force the rotation to be set to portrait. There is an undocumented.. I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out I would like to force the rotation to be set to portrait. There is an undocumented property setter on UIDevice that does the trick but obviously generates a.. want my app to support landscape and portrait in View 1 but only portrait in View 2. I have already implemented shouldAutorotateToInterfaceOrientation for all views but if the user is in landscape mode in View 1 and then switches to View 2 I want to force the phone to rotate back to Portrait. iphone objective c cocoa touch..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

When you can especially if they will be using memory beware of leaving contexts open though Recycle page objects by doing pointer swaps or destroy unused views Close any open Contexts as soon as you don't need them on receiving memory warnings release and reload the DocRef and any page Caches Other PDF Features Getting..

How to determine the content size of a UIWebView?

http://stackoverflow.com/questions/3936041/how-to-determine-the-content-size-of-a-uiwebview

the content size of a UIWebView I have a UIWebView with different single page content. I'd like to find out the CGSize of the content to resize my parent views appropriately. The obvious sizeThatFits unfortunately just returns the current frame size of the webView. iphone cocoa touch uiwebview share improve this question..

iOS SDK - Programmatically generate a PDF file

http://stackoverflow.com/questions/4362734/ios-sdk-programmatically-generate-a-pdf-file

work in my honest opinion when it comes to programmatically drawing a PDF file. I would like to programmatically create a PDF using various objects from views throughout my app. I am interested to know if there are any good PDF tutorials around for the iOS SDK maybe a drop in library. I've seen this tutorial PDF Creation.. file. This function recursively walks the view hierarchy and renders each subview. For my project I need to support only Label ImageView and View for nested views void addObject UIView view if view nil view.hidden if view isKindOfClass UILabel class self addLabel UILabel view else if view isKindOfClass UIImageView class..

iPhone - Backgrounding to poll for events

http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events

your background process With this PingPong I can do a lot of backgrounding. but remember be very spare with CPU time. And save all data to restore your views your app will be terminated some time later. To make it appear still running you must jump back into your last state after wakeup. I don't know if this is the approach..

Tab bar controller inside a navigation controller, or sharing a navigation root view

http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root

item at that level stays in sync with the selected tab's navigation item and the individual tab's table controller's need to push their respective detail views to self.tabBarController.navigationController instead of self.navigationController . iphone cocoa touch uitabbarcontroller uinavigationbar share improve this..

iPhone: How to load a View using a nib file created with Interface Builder

http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder

a Questionnaire component I want to load on a NavigationContoller my QuestionManagerViewController. This is an empty view controller that can load different views depending on the question that needs to be answered. The way I'm doing this is Create the Question1View object a as UIView subclass defining some IBOutlets. Create..

UIScrollView horizontal paging like Mobile Safari tabs

http://stackoverflow.com/questions/1220354/uiscrollview-horizontal-paging-like-mobile-safari-tabs

view's content. The Apple provided example PageControl shows how to use a UIScrollView for horizontal paging but all views take up the whole screen width. How do I get a UIScrollView to show some content of the next view like mobile Safari does.. very recently was as follows Create a UIView subclass i.e. ClipView that will contain the UIScrollView and it's subviews. Essentially it should have the frame of what you would assume the UIScrollView would have under normal circumstances. Place..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

UIViewAutoresizingFlexibleWidth UIViewAutoresizingFlexibleHeight It works great out of the box for table views however if your app used pixel perfect layout for displaying content then your best bet would be to re imagine the content..

How to detect iPhone 5 (widescreen devices)?

http://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices

that iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your.. share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt any screen size... fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt any screen size. That's not very hard read some documentation about that. It will save you a lot of..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

Update for iOS 7 Apple docs for UIActionSheet UIActionSheet is not designed to be subclassed nor should you add views to its hierarchy I recommend against trying to customize the contents of an ActionSheet as it can lead to serious invalid..

How do I detect when someone shakes an iPhone?

http://stackoverflow.com/questions/150446/how-do-i-detect-when-someone-shakes-an-iphone

motion withEvent event BOOL canBecomeFirstResponder return YES @end You can easily transform any UIView even system views into a view that can get the shake event simply by subclassing the view with only these methods and then selecting this.. BOOL animated shakeView resignFirstResponder super viewWillDisappear animated Don't forget that if you have other views that become first responder from user actions like a search bar or text entry field you'll also need to restore the shaking..

How to customize the callout bubble for MKAnnotationView?

http://stackoverflow.com/questions/1565828/how-to-customize-the-callout-bubble-for-mkannotationview

want to be able to control the callout itself the mapkit only provides access to the left and right ancillary callout views but no way to provide a custom view for the callout bubble or to give it zero size or anything else. My idea was to override.. of knowing if the user touched on my point on the map selected it or touched a point that is not part of my annotation views delected it without having the default callout bubble view show up. I tried going down a different path and just handling..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

a documented way to set the iPhone orientation I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out I would like to force the rotation.. device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out I would like to force the rotation to be set to portrait. There is an undocumented property setter on UIDevice that.. in View 1 but only portrait in View 2. I have already implemented shouldAutorotateToInterfaceOrientation for all views but if the user is in landscape mode in View 1 and then switches to View 2 I want to force the phone to rotate back to Portrait...

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

be using memory beware of leaving contexts open though Recycle page objects by doing pointer swaps or destroy unused views Close any open Contexts as soon as you don't need them on receiving memory warnings release and reload the DocRef and any..

How to determine the content size of a UIWebView?

http://stackoverflow.com/questions/3936041/how-to-determine-the-content-size-of-a-uiwebview

a UIWebView with different single page content. I'd like to find out the CGSize of the content to resize my parent views appropriately. The obvious sizeThatFits unfortunately just returns the current frame size of the webView. iphone cocoa..

iOS SDK - Programmatically generate a PDF file

http://stackoverflow.com/questions/4362734/ios-sdk-programmatically-generate-a-pdf-file

comes to programmatically drawing a PDF file. I would like to programmatically create a PDF using various objects from views throughout my app. I am interested to know if there are any good PDF tutorials around for the iOS SDK maybe a drop in library... the view hierarchy and renders each subview. For my project I need to support only Label ImageView and View for nested views void addObject UIView view if view nil view.hidden if view isKindOfClass UILabel class self addLabel UILabel view else..

iPhone - Backgrounding to poll for events

http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events

PingPong I can do a lot of backgrounding. but remember be very spare with CPU time. And save all data to restore your views your app will be terminated some time later. To make it appear still running you must jump back into your last state after..

Tab bar controller inside a navigation controller, or sharing a navigation root view

http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root

the selected tab's navigation item and the individual tab's table controller's need to push their respective detail views to self.tabBarController.navigationController instead of self.navigationController . iphone cocoa touch uitabbarcontroller..

iPhone: How to load a View using a nib file created with Interface Builder

http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder

on a NavigationContoller my QuestionManagerViewController. This is an empty view controller that can load different views depending on the question that needs to be answered. The way I'm doing this is Create the Question1View object a as UIView..

UITableViewCell allocation issue - cell is not nil

http://stackoverflow.com/questions/11042129/uitableviewcell-allocation-issue-cell-is-not-nil

iOS 6 - viewDidUnload migrate to didReceiveMemoryWarning?

http://stackoverflow.com/questions/12674268/ios-6-viewdidunload-migrate-to-didreceivememorywarning

the way you do it then you probably don't require any code changes. According to the iOS 6 viewDidUnload documentation Views are no longer purged under low memory conditions and so this method is never called. Therefore you do not want to move the..

Multiple Views in one Window

http://stackoverflow.com/questions/1585489/multiple-views-in-one-window

Views in one Window I'm writing a view based app but I'm a bit confused about loading my views. I'd like to have four different.. and another UIView with buttons. Thanks in advance for the help. iphone view share improve this question Views in an iPhone app are arranged hierarchically that is each view has a parent view excepting the root view . The interesting..

Status bar appear over my view's bounds in iOS 7 [duplicate]

http://stackoverflow.com/questions/18375898/status-bar-appear-over-my-views-bounds-in-ios-7

controls in the storyboard or XIB files to learn more about constraints see œConstraints Express Relationships Between Views . If both versions of a standard app should have a similar layout and you ™re not using Auto Layout use offsets. To use offsets..

Do I programatically add SubViews in ViewDidAppear, ViewDidLoad, ViewWillAppear, the constructor?

http://stackoverflow.com/questions/2280423/do-i-programatically-add-subviews-in-viewdidappear-viewdidload-viewwillappear

I programatically add SubViews in ViewDidAppear ViewDidLoad ViewWillAppear the constructor I'm trying to figure out from Apple's sketchy documentation.. to figure out from Apple's sketchy documentation which method is the best place to be initializing and adding my Views controls to the controller's view. With winforms it's fairly straightforward as they're always initialized inside InitializeDesigner.. inside a UINavigationController most of the time if this effects it all. Here's an example public MyController Here AddViews public override ViewDidLoad base.ViewDidLoad Or is should it be here AddViews public override ViewWillAppear bool base.ViewWillAppear..

Add UIView Above All Other Views, Including StatusBar

http://stackoverflow.com/questions/2666792/add-uiview-above-all-other-views-including-statusbar

UIView Above All Other Views Including StatusBar I'm wanting to create a view UIControl which blocks all input and shows a UIActivityIndicatorView while..

shouldAutorotateToInterfaceOrientation doesn't work

http://stackoverflow.com/questions/2868132/shouldautorotatetointerfaceorientation-doesnt-work

and viewDidUnload respectively didn't worked either. I'm lost.. Any help will do just one more info... all my Views are of type UIControl as i needed the TuchUpInside to work. Appriciate your help. iphone xcode ipad uiviewcontroller screen..

How do I hide iAd banners when no ads are being served?

http://stackoverflow.com/questions/3123259/how-do-i-hide-iad-banners-when-no-ads-are-being-served

snippet is included here for your convenience. Additionally you may wish to review the section Working with Banner Views of the iAd Programming Guide for specific details https developer.apple.com iphone prerelease library documentation UserExperience.. https developer.apple.com iphone prerelease library documentation UserExperience Conceptual iAd_Guide WorkingwithBannerViews WorkingwithBannerViews.html Banner View Delegate to Remove a Banner View When Advertisements are Not Available void bannerView.. iphone prerelease library documentation UserExperience Conceptual iAd_Guide WorkingwithBannerViews WorkingwithBannerViews.html Banner View Delegate to Remove a Banner View When Advertisements are Not Available void bannerView ADBannerView banner..

iPhone: Create a reusable component (control) that has some Interface Builder pieces and some code

http://stackoverflow.com/questions/4036398/iphone-create-a-reusable-component-control-that-has-some-interface-builder-pi

package the whole thing up so that I can then fairly easily drag and drop the resulting custom component into other Views without having to manually rewire a bunch of outlets and so on. A little manual rewiring is fine I just don't want to do..

PDF Reader like iBooks

http://stackoverflow.com/questions/4187031/pdf-reader-like-ibooks

Programmatically creating Views in IOS (how does it work)?

http://stackoverflow.com/questions/4820094/programmatically-creating-views-in-ios-how-does-it-work

creating Views in IOS how does it work A little background I'm going through the CS193P iTune videos and I was stuck on the assignment..

How to hide 'Back' button on navigation bar on iPhone?

http://stackoverflow.com/questions/614212/how-to-hide-back-button-on-navigation-bar-on-iphone

to hide 'Back' button on navigation bar on iPhone I added a navigation control to swith between Views in my app. But some of the views shouldn't have 'Back' the previous title button. Any ideas about how to hide the back button..

Views Navigation Using Swipe Gesture

http://stackoverflow.com/questions/6326816/views-navigation-using-swipe-gesture

Navigation Using Swipe Gesture How can I switch views vertically using swipe gestures iphone ios xcode ipad share improve..

Where is the difference between an Window XIB and an View XIB template for iPhone OS > User Interfaces?

http://stackoverflow.com/questions/729314/where-is-the-difference-between-an-window-xib-and-an-view-xib-template-for-iphon

Add Array Objects to Programmatically Creratings Views

http://stackoverflow.com/questions/7901397/add-array-objects-to-programmatically-creratings-views

Array Objects to Programmatically Creratings Views i created views and labels with programmatically in xcode and created ratio Array. i want to add ratioArray to inside labels.text... in xcode and created ratio Array. i want to add ratioArray to inside labels.text. my code is int amountOfViewsHorizontally 10 int amountOfViewsVertically 10 int widthOfView 60 int heightOfView 60 for int index 0 index amountOfViewsHorizontally.. ratio Array. i want to add ratioArray to inside labels.text. my code is int amountOfViewsHorizontally 10 int amountOfViewsVertically 10 int widthOfView 60 int heightOfView 60 for int index 0 index amountOfViewsHorizontally index for int j 0 j..

How to POST an object to rails using RestKit?

http://stackoverflow.com/questions/8409115/how-to-post-an-object-to-rails-using-restkit

title Made from the iPhone 2 updated_at Wed 07 Dec 2011 14 34 43 UTC 00 00 16.4ms COMMIT Completed 201 Created in 77ms Views 1.8ms ActiveRecord 21.9ms iphone ruby on rails ios serialization restkit share improve this question I think the inverseMapping..

How to animate View swap on simple View iPhone App?

http://stackoverflow.com/questions/983598/how-to-animate-view-swap-on-simple-view-iphone-app

to animate View swap on simple View iPhone App Have a simple iPhone app with a single UIViewController and two Views in one xib. the first view is very simple with a button and upon button press the second more complex view is loaded via..