UISegmentedControl looks strange in iOS 6 and SDK 7 - ios6

After migrating my project to Xcode 5 / SDK 7 the UISegmentedControl looks very strange on my old iOS 6 iPad.
The font is bold, bigger and the segment has a blue background. (It's like setting the style to plain)
But I want it like the bar style:
The UISegmentedControl is part of a navigation bar.
How can I change this?

It only happens if you're working with Xamarin.iOS and the new SDK 7 (Xcode 5). I'm not sure wether the Interface Builder creates other XML code for the storyboard or Xamarin.iOS is parsing something wrong.
The workaround is to set in your UIViewController in the method ViewDidLoad() the style to 'bar style' in code. Then it looks on a iPad with iOS 6 like before ;)

Related

PRISM INavigateAync Version 7 for WPF

I'm new to PRISM, and with this screen shot..
It shows that Version 6 is legacy, but the navigation for version 7 is blank (?). Can I be pointed to an example of INavigateAsync ? What am I Missing?
https://github.com/PrismLibrary/Prism-Documentation/issues/28
Docs for WPF Prism 7 has not been written yet

UITableView/UICollectionView scrolling looks choppy after Xcode 9.0 and iOS 11

I have four pages in the iPhone app. All 4 pages are subclass of UIViewController. Two pages have UITableView to show list of items. Two pages have UICollectionView to show data. All data fetched from web-service with help of AFNetworking. It comes very well without any issues. I show custom cells from storyboard for tableView and collectionView with all required and recommended methods.
It used to show smooth scrolling in simulator and devices before I updated my Xcode 8.3 to Xcode 9.0 and iOS 11. I tried with solutions from this and also other possible solutions from SO but does not solve my problem. Most confusing part is that I did not change single line of code for tableView or collectionView and it started showing choppy effect.
It looks like it waits for something every second and scrolling with noticeable pause even-though I do not have any complex logic while showing data. I just show data as it comes in web-service response. I have old branch as well which used to show smooth scrolling with Xcode 8.3 but when I run same code with Xcode 9.0, it show choppy scrolling.
I use macOS 10.12.6, Xcode 9, Swift 4 and simulators with iOS 11 and iOS 10.3.
We found a workaround for this issue! If you simply implement
-[UITableView tableView:estimatedHeightForRowAtIndexPath:]
and return your
-[UITableView tableView:heightForRowAtIndexPath:]
everything will work.
Update:
It turns out the core of the issue is that when you allocate a new UITableView with Xcode 8, the default value for UITableView.estimatedRowHeight is 0, whereas when you do the same with Xcode 9, the default value is -1, or UITableViewAutomaticDimension. Setting it back to 0 fixes the issue.
Set isPrefetchingEnabled of your collection view to false, OR(which solves your problem way better) use pre-fetching methods in UICollectionViewDataSourcePrefetching/UITableViewDataSourcePrefetching to get smoother and more efficient scrolling. Make any web loading there for data to be ready for when a cell needs to be created

Submitting an iphone 5 optimized app to app store

When I started creating my app in xcode, all of the view controllers in the main storyboard were the iphone 5 4 inch display. So I have finally completed my iphone 5 app, however, when I run the app on an iphone 4 simulator everything is overlapping and skewed. Do I have to completely duplicate the app and downscale all my views to the iphone 4 3.5 inch display, or do I just go ahead and submit the app as it is?
What you should be doing is either:
a) Turn on auto-layout in your storyboard file and make sure that the views are correctly laid out in both screen sizes. There is a button in the Storyboard that toggles the sizes:
b) figure out what the screen size is in code and modify their positions accordingly.
Option a) is the easiest one to do.

Xcode 4.5 iOS SDK 6.0 Beta 4 compiled app gives me thin white lines in background

you all know the blue background with the thin white lines in the iOS "Settings" app. I set a grey background color for all of the views in my app which works as expected. Now when I build the exactly same code with the Xcode 4.5 (4G144l) "Preview"-Version with the iOS 6 beta 4 SDK an let it run on a device with iOS 6 beta 4 or the iPhone 6.0 Simulator my background grey is replaced by this "blue with thin white lines"-style and I have no clue why. No one seems to have this problem. Anyone?
thanx
This problem occurs for all tables that use the UITableViewStyleGrouped style and try to set a background color. A change was made in iOS 6 that causes the background view to be set for these tables, which overrides the background color property. The solution is to clear the background view in the UITableView.
table.backgroundView = nil;
I've had a similar problem, I'm using "[[UITableView appearance] setBackgroundColor:" to change the background images of all the tableviews in the app.
Fixed it by changing the background color of the TableView in the Storyboard from Default to Clear color.

How to program Multi Tab Task bar Preview like IE on Windows 7 in WPF?

IE8 on Win7 http://akashkava.com/blog/wp-content/uploads/2009/09/IE8-on-Win7.png
Windows 7 has a new Task bar, and IE can display multiple tabs in the task bar previews, most of programs which does have not implemented this new api only shows one preview, I have an application where I have multiple tabs and I want to show each tab on this preview.
Let me elabourate more on it, I know that every new window created automatically gets a new Window in Switcher, but how to override to use it with tabbed document interface in WPF.
It certainly is possible, you can get familiar with the windows 7 taskbar api, I would recommend starting with the windows 7 taskbar developer resources.
Here is something to get you started! I know this doesn't cover your scenario yet but it is planned in part 2, so keep an I on these:
http://dotnet.org.za/rudi/archive/2009/10/14/anatomy-of-the-windows-7-taskbar-tabbedthumbnail-part-1.aspx

Resources