Skip to main content

Posts

Showing posts from May, 2012

First post using stackedit

Welcome to StackEdit! Hey! I’m your first Markdown document in StackEdit1. Don’t delete me, I’m very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.
Documents StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible offline!
Note:
StackEdit is accessible offline after the application has been loaded for the first time.Your local documents are not shared between different browsers or computers.Clearing your browser’s data may delete all your local documents! Make sure your documents are synchronized with Google Drive or Dropbox (check out the Synchronization section). Create a document The document panel is accessible using the button in the navigation bar. You can create a new document by clicking New document in the document panel.
Switch to another document All your local documents are listed in the document panel. You can switch from one to another by clicking a document in the li…

Fixed error while updating ROM for BlackBerry phone

While you are trying to update ROM (called BlackBerry Device Software by RIM, or short, Operating System of BlackBerry phone) for Blackberry smartphone, by using AppLoader.exe at
"C:\Program Files (x86)\Common Files\Research In Motion\AppLoader" (for MS Windows 64 bits)
you may find an error:
“The BlackBerry Desktop Software does not have BlackBerry Device Software for the device that you have connected to the computer” This error is not common, but fix it is not easy.
You should install the latest Blackberry Desktop Software and the version of ROM you want (can find by here).
In my case, I use BlackBerry Desktop Software version 6.1 (the latest at writing) and ROM 5.0.0983 for my BlackBerry 9630 Tour, and I still meet an error.
The support from Blackberry site (you can find it here) is not useful at all. It just shows very trivial solutions, and I believe that all computer users already know.

So, how to fix it.
It is very easy, please use vnbbutils to fix.
vnbbutils is a Wi…

iOS Programming: Customize buttons on UIAlertView

As you know, default UIAlertView has a little chance for developers to customize.
You can just setup the title, message and text of buttons, and no more.
Even that, arrange the axis of buttons is not easy. iOS decided it for you automatically.


By default, if there are 1 or 2 buttons, iOS arranges them side - by - side.
If there are more than 2 buttons, iOS arranges them stacked.


I found TSAlertView, which let developers do something more with UIAlertView. You can visit this library here.

But, TSAlertView just supported arranges 2 buttons in stacked style, but if you want to arrange 3, or even more buttons in side - by - side, TSAlertView cannot support, even you set buttonLayout is TSAlertViewButtonLayoutNormal

I added some code to support side - by - side arrangement with multiple buttons.

Besides it, TSAlertView has many features you can discover later.

You can download my source code here.

And there are some pictures here:





Please let me know your ideas, and I am trying to improve …