ipad

UISplitView : Need to hide left view for initial two screens

房东的猫 提交于 2020-02-08 02:42:47
问题 I have gone through various threads and tutorials but not able to find any solutions, so need to post the question. So the questions is : For initial three screens need to display only the detail view without any popover button at navigation bar in landscape. Now in third screen on button click i need to load the splitview with both left and right view. I am aware of the methods which hides the left view panel in landscape mode. The only part i am worried id to load the splitview from 3rd

size of the tabBarItems in a UITabBarController

只谈情不闲聊 提交于 2020-02-07 04:08:06
问题 I have 4 tabs in my APP for iPad . The problem is that sometimes the text is bigger than the button but i have more space to use. However, the UITabBarController doesn't use all the width for the tabBarItems . Is there an option to do it? 回答1: UITabBarController will automatically insert spaces in between. You could do two things Override UITabButton's sizeThatFits method to give it your own size Insert negative-width spaces in between For option 2, here's some sample code I used for toolbars

How to show heatmaps on all visible elements at once?

不问归期 提交于 2020-02-06 15:47:49
问题 I was testing Heatmaps SDK, and I wanted to know if there is a setting or a way to show heatmaps on all the visible elements at one time? Currently I can view one element at a time like below. This is my setup and below are pictures of the results: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UIViewController *rootVC = _window.rootViewController; self.window = [[HMUIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

How to show heatmaps on all visible elements at once?

心不动则不痛 提交于 2020-02-06 15:46:29
问题 I was testing Heatmaps SDK, and I wanted to know if there is a setting or a way to show heatmaps on all the visible elements at one time? Currently I can view one element at a time like below. This is my setup and below are pictures of the results: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UIViewController *rootVC = _window.rootViewController; self.window = [[HMUIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

Screen rotation glitch on iPadOS 13

坚强是说给别人听的谎言 提交于 2020-02-05 07:02:32
问题 I've been dealing with a UI glitch on iPadOS 13.1.3 that is related to device orientation. Is there any solution or workaround for this? Issue Description Let's have screen A that displays modally screen B. Screen A is locked to portrait only and screen B supports all orientations. If screen A is displayed, device is rotated to landscape then and screen B is about to be displayed, screen A is resized incorrectly first which results a wierd glitch. Images The left images is taken on iPadOS 13

UIWindow subviews do not autorotate

情到浓时终转凉″ 提交于 2020-02-04 07:46:48
问题 I am switching away from a split view controller in order to get two vertical table views side by side, just like the settings app. In my iPad AppDelegate I write the following code : rootViewController.view.frame = CGRectMake(0, 20, 270, 1004); [window addSubview:rootViewController.view]; detailViewController.view.frame = CGRectMake(270,20, 498, 1004); [window addSubview:detailViewController.view]; [window makeKeyAndVisible]; This works great to get everything to show up in portrait just as

App crashes only in xcode instruments

耗尽温柔 提交于 2020-02-03 11:01:07
问题 I have a strange issue, I have developed an app , I analyzed the app from Xcode i.e Xcode>Product>Analyze, then fixed any memory leaks I got. I ran the app in ipad simulator it worked fine, no crash nothing, ran it on an iPad device;no crash no errors nothing. But when I tried to profile the app from instruments for memory leaks , during profiling there were no memory leaks, but at one stage when I load a modal view and then after Modal view dismissal the app crashes and instrument displays

Present MFMailComposeViewController from modal FormSheet on iPad?

蹲街弑〆低调 提交于 2020-02-03 09:45:31
问题 Has anyone been successful showing the standard Apple MFMailComposeViewController from a UIModalPresentationStyleFormSheet view controller on the iPad? When I do this the view shows as expected but when the user taps any of the input text views, the subject for example, and the keyboard slides pressing the Cancel button will show the "Delete Draft" & "Save Draft" popover outside of the screen bounds. If I change the modal view to full screen it works properly. 回答1: I don't think you are

FMDB lastinsertRowID always 0

别说谁变了你拦得住时间么 提交于 2020-02-02 06:21:25
问题 Hya. I have implemented FMDB in my app. I am trying to get the last row id from one of my databases with this FMDatabase *bdb=[FMDatabase databaseWithPath:databasePath]; NSString *str; if([bdb open]){ int lastId=[bdb lastInsertRowId]; FMResultSet *s = [bdb executeQuery:[NSString stringWithFormat:@"SELECT budget FROM data WHERE ROWID='%d'",lastId]]; if([s next]) { str= [s stringForColumnIndex:0]; } } the problem i have is that lastId is always 0 , although there are 3 entries currently in the

FMDB lastinsertRowID always 0

做~自己de王妃 提交于 2020-02-02 06:19:45
问题 Hya. I have implemented FMDB in my app. I am trying to get the last row id from one of my databases with this FMDatabase *bdb=[FMDatabase databaseWithPath:databasePath]; NSString *str; if([bdb open]){ int lastId=[bdb lastInsertRowId]; FMResultSet *s = [bdb executeQuery:[NSString stringWithFormat:@"SELECT budget FROM data WHERE ROWID='%d'",lastId]]; if([s next]) { str= [s stringForColumnIndex:0]; } } the problem i have is that lastId is always 0 , although there are 3 entries currently in the