Skip to Content

is FUIGridTableViewCell is only for iPad?

Hi Folks,

While implementing FUIGridTableViewCell with SAP iOS SDK I observed following issues :

1. Using FUIGridTableViewCell, its appearing as list in iPhone screen however its appearing Grid view in iPad screen.

Attached screenshot of both for reference.. ipad.png iphone.png. Need to know the reason for this design.

2.Since we don't support iPad, our requirement is to implement a Grid view list for iPhone screen. If FUIGridTableViewCell is applicable for iPad screen only, kindly help me the api which is applicable for iPhone screen.

3.While creating application its always create 'Master Detail view controller". Is it possible if we can change the design before creating application like single view controller design.

I hope you will be able to provide the information.Thanks in advance for any help you are able to provide.


Regards,

Ruchi

iphone.png (140.8 kB)
ipad.png (194.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Mar 31 at 04:12 PM

    Hi Ruchi, the FUIGridTableViewCell can be used in iPad or iPhone, but it has a different layout when in 'Compact' vs 'Regular' size classes. https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/adaptivity-and-layout/. In Compact size class, it adapts to resemble an ObjectTableViewCell, while in Regular size class it is the 'grid' style row. This is to account for the limited ability of the narrow screen to show columns.

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks Stan.

      As i mentioned , our requirement is show Grid layout on iPhone screen not iPad.

      kindly help me the api/ui components which is applicable for iPhone screen Grid layout.

      While creating application its always create 'Master Detail view controller". Is it possible if we can change the design before creating application like single view controller design.

      Thanks in advance for any help you are able to provide.

  • Posted on Apr 02 at 08:54 PM

    @Ruchi Shree this is not a supported configuration for the grid layout.

    It is completely expected that the UI generated by the Assistant is thrown out... this is not a nice UI for a Fiori Design Language application :). Its purpose is to show how the DataService can be utilized in the UI, and to validate the data coming from the backend. You should *always* replace it with your own UI.

    To do this, modify the showApplicationScreen(...) function in ApplicationUIManager.swift.

        func showApplicationScreen(completionHandler: @escaping (Error?) -> Void) {
            // Check if an application screen has already been presented
            guard self.isSplashPresented else {
                completionHandler(nil)
                return
            }
    
            // Restore the saved application screen or create a new one
            let appViewController: UIViewController
            if let savedViewController = self._savedApplicationRootViewController {
                appViewController = savedViewController
            } else {
                // set appViewController to YOUR app home screen
                // one option is to load from Storyboard... UIStoryboard(name: "MyStoryboard", .main).instantiateInitialViewController()
                // another option is to initialize programmatically:  appViewController = MyHomeScreenViewController()
    
                // note:  you can also delete the UISplitViewControllerDelegate implementation in AppDelegate.swift
            }
            self.window.rootViewController = appViewController
            self._onboardingSplashViewController = nil
            self._savedApplicationRootViewController = nil
            self._coveringViewController = nil
            completionHandler(nil)
        }
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.