cancel
Showing results for 
Search instead for 
Did you mean: 

is FUIGridTableViewCell is only for iPad?

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190800
Contributor
0 Kudos

@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)
    }
former_member190800
Contributor
0 Kudos

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-layou.... 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.

0 Kudos

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.