App runs very slow on ios6 devices - ios6

I have an app with deployment target iOS 3.0. It runs smooth as silk on all devices that haven't been upgraded to iOS6. However, on iOS6, animations are laggy, scrolling tableviews is slow (doesn't matter if they contain a lot of data or not, very inconsistent).
I have been going through the code and can't seem to find anything that causes this laggyness. ARC is disabled for this project (because it still supports iOS3.0), I have changed the deployment target to iOS6 to see if that'd make any change but it didn't.
Any developers with a similar problem? I'm starting to think it may be a setting in my Xcode project, as the laggyness is very inconsistent; Some screen work smooth on iPhone 5, while the same screens lag on iPhone 4 (and vice versa!)
Greetings

I found the problem: there was a background image "stripe.png" that was repeated via
[bgView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:#"stripe.png"]]];
The stripe.png file was 3x3 in size. A #2x version was provided, but it had the same size (3x3). When I made a 6x6 version of it, everything runs smooth again.
Always make your #2x images double the size!

Related

Codename one Simulators sizes do not fit within the window

While developing app with codename one with Netbeans IDE, I was running into this issue where the simulators were not usable except iphone 3. If I choose the simulator to be iPhone 5 or 6 or 6 plus, the simulator is so huge and only part of it appears on the screen and I couldn't even scroll.
Is there anyway to make the simulator to fit within the window sizes? I tried on Mac and Windows and I experienced the same result.
Please advise.
Uncheck the Scrollable option under the Simulalator menu. It's on by default since some artifacts might appear during scaling but for large skins there is no alternative.

Tabs on android make the whole screen black

IDE: Eclipse
Desktop OS: Mac
Device : Android 4.0.4
Hi,
last week i sent a new android build to the server, and it updated the jar files i have on my Mac, then i installed the app on LG android 4.0.4 device that i tested before, and was surprised to find some pages display all black.
After investigating a little, i discovered that when i use tabs on any form the form will be displayed black only on android, no problem on simulator nor IOS iPhone 6S.
I looked at the forum and i found similar problem happened a year ago , and the solution was to use "android.asyncPaint=false" temporarily . now this removed the black, but messed all the rendering while navigating between tabs.
So my question is why this happened now? the past three months i was developing and deploying on android without any problem. Did the newest update corrupt something?
Thanks
Sam
Using the android.asyncPaint flag is discouraged as it will fallback into a relatively slow compatibility mode. We are currently investigating some regressions in some rendering optimizations that affect some devices and are in the process of deploying a solution for that.
Please let us know if the issues persist.

When using Xcode5, how do I decide how the app will look? iOS7 or iOS6 style

I have some apps developed using Xcode4.
When opening the projects and build them for the 5 simulator using Xcode5, most of the apps will look iOS7 style when built for 5 simulator while some still looks iOS6 no matter what I do
The apps are pretty much the same so I do not understand how to decide myself which style it is going to be.
Looking at the settings I do not see any difference.
The app which is built as a iOS6 like style seems not possible to change to iOS7 style, and some apps are built as iOS7 style as default and is not possible to change to iOS6 style using Xcode5.
Please help!
Depends, most of the standard UI elements are redesigned in iOS7 (UIAlertView for instance), you can't do a lot, if you want to keep the ioS6 look you should rebuild all these components by yourself.
Elements that adhere to the appearance proxy can be customized to look like pre-iOS7, but it will be a hard job.
In iOS7 you also have another "problem" to manage, by default all views are full-screen, this is simply to solve if you deploy only on iOS7, bit harder if you deploy for prior iOS7 and iOS7.
There i a way around... download the 4.6 version of xcode ance deploy only on iOS6, most of the UI elements will maintain the same aspect, it seems that Apple still accept <=iOS6 binaries.

ios6 ios7 xcode4.6 xcode5 dilemma

I was building an app in xcode 4.6 (ios6.1) and everything was fine.
I ran the same code through xcode 5 (ios 7) on an ios7 device and simulator, and I ran into the full screen (status bar included) issue, horizontal scrollview issues, modal viewcontroller issues, et al.
I’m using a navigation controller with the bar turned off. Instead I’m using a custom view to pass for a bar. So the extendedEdge thing isn’t working as well.
I understand that eventually, I’ll have to update my design and implementation accordingly.
Now here’s the dilemma – I ran the app (backed up original code) from xcode 4.6 (ios6) on an ios 7 device, and it’s working absolutely fine. It’s leaving it’s gap for the status bar, and there are no issues at all.
What I can’t understand now is how to proceed?
Will the app be accepted if I continue working on xcode 4.6 with ios6 (since it’s almost finished)?
I’m not able to move to xcode 5, since it has only the latest ios7 as the Base SDK.
I can’t find a legitimate way to add ios 6 sdk to xcode 5 (except copying the 6.1 SDK to the xcode5 package).
And, if I hadn’t downloaded xcode 5 DP (which installs it separately), the mac app store would have updated my xcode 4.6 to xcode 5
Apple still accept applications submit through Xcode 4.6
But consider that you would loose some new functionality like having different icons to each OS version etc.
Moreover, your app won't use the 64-bit processor (it is still compatible but if your app is a game or something like that it is recommended to use it).
I assume that in few months you won't be able to submit apps using the old Xcode.
UPDATE:
For you to be able to use status bar as before (like hidden), in your apps plist file add a row call it "View controller-based status bar appearance" and set it to NO
Just to update people who might be looking for an answer to this -
Apple will only accept apps and updates made with Xcode 5 on iOS 7, effective 1st Feb 2014.

Silverlight on Windows 8

I'm running my SL5 application (that has been working well so far) on Windows 8, and it is not going well. I have a background picture which usually does not render correctly, almost everytime I navigate my background (including the controls over it) just goes white till I resize IE, then it re-paints (what makes it stranger is that the parts that goes white is outside of the navigation frame, why is it getting repainted). (Chrome renders fine)
When I run my application out-of-browser my login screen pops up and works correctly but after the login screen closes it looks like the gray background of the login screen remains behind and I cannot click on anything, resizing makes no difference, it looks like every control has been disabled.
I have updated my NVidia Drivers to the latest, don't think its a display driver issue though.
Anyone else had these issues? Anyone else running SL5 fine on windows 8?
(Looks like I'll be downgrading back to windows 7 soon)
Silverlight should run great on any desktop browser in Windows 8, just like it does on Windows 7, Vista, and Mac. The underlying runtime is 100% the same. That does not mean you may not find a glitch with a graphics driver, but it means you shouldn't - and likely won't.
I did want to make a clarifying point, however, that Silverlight is not part of the Modern Internet Explorer (the Metro Internet Explorer). Only a subset of Flash is supported and that is only supported on white-listed sites.
This means Silverlight solutions that you might have expected to run on the Surface RT (running Windows RT - or Windows on Arm) will not run (as there is no SL runtime). And, I think we can all have a collective moan and ask, together, "Why not?" To which there is no acceptable answer.
The theoretical goal, of course, is to write native Windows 8 apps. If you want to write something web based you should write it in HTML5. That's the official word. I think we all know that HTML5 has a ways to go in order to catch Silverlight, but it is what it is. Can't change some things.
I have had no issues with any of my Silverlight 5 apps running on Windows 8 - I focus mainly on line of business apps but have some graphical and otherwise apps that run fine as well.
I'm only marking this as the answer to close the case, what the actual answer was to the problem we will never know. The solution: automatic updates. After much hassles with getting automatic updates to actually go through, my machine is now working well.

Resources