Can I customise the UIAlertView [iPhone iOs 4]? - iphone

I try to run this a sample that customise UIAlertView but it doesn't work.
http://joris.kluivers.nl/iphone-dev/?p=CustomAlert
I would like to change the background image of the UIAlertView.
Can I do it?
Thanks

I have customized UIAlertView before, which broke when a new OS was released (4.2, specifically). I recommend implementing your own custom view instead of trying to customizing UIAlertView.

Technically yes, you can, but it's frowned upon. Modifying the private view hierarchy of a framework-provided control is dangerous and can cause incompatibility with future versions of the OS. What's more, you're breaking UI conventions if you start changing these things, and that should not be done lightly.

I have a UIAlertView replacement, shared on on github, that supports using a custom background:
https://github.com/TomSwift/TSAlertView

Related

which multi-selection can be implemented in iphone (Registration page)

I have multi-selection dialog(drop-down) in Android where user selects all options applicable to him in registration page.What can be used in Iphone for the same purpose ?
And selecting a few options will unhide few textfields which is mandatory to fill.
Let me know what can be my approach.Please share any open source code links.
Thanks in advance.
No, there is no such thing within the iOS SDK and that is for a good reason - those elements are just not pretty, funky and usable well enough when acting on a touch display.
Consider using UIPickerView or UISegmentedControl instead. Maybe also have a look at Action Sheet.

Make Popups With Cocoa Touch

I'm trying to make a popup like in "Camera+" or "Tweetbot" (like this one : Tweetbot or this one Camera+). How can I do this ?
That component is generally called a Popover or a Callout. Apple provides you with an Implementation on the iPad (UIPopover) but not on the iPhone.
There are a few Libraries which attempts to solve this and creates similar popovers like the ones you've shown. With a bit of customisation you can get it to look like this ones you've linked. Below is a list of the ones i've found so far:
WEPopover
CMPopTipView
PopupView
There's similar question here: iPhone popup menu like iPad popover?.
There is a solution. It's called WEPopover and you can download it from github.
For ipad use the popover control:
http://www.matthewcasey.co.uk/2010/04/07/tutorial-introduction-to-pop-over-control-on-ipad-part-1/
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPopoverController_class/Reference/Reference.html

SplitView like Facebook app on iPhone

I want to create an iPhone app that uses a navigation scene similar to the one pictured in the link
Please note I do not want this to only work for iPad, I want it to work for iPhone exactly as pictured, when you click on a tableview item it hides the tableview and makes that view full screen. I want ideas on how to do this because I cannot figure it out myself.
Thanks
Facebook guys have done brilliant job in the new version of the app. The similar open source code can be found from here - JTRevealSidebarDemo. Please note that as of June 2014, this project has been discontinued, so you'll probably have better luck with a project from the list below.
It reveals technique behind doing split view for iPhone.
Some other open source code:
JWSlideMenu
DDMenuController
PKRevealController
ViewDeck
ECSlidingViewController
MWFSlideNavigationViewController
MFSideMenu
SASlideMenu
HHTabListController
MTSlideViewController
MTStackViewController
MMDrawerController
DMSideMenuController
JVFloatingDrawer
How about projects with storyboard compatibility?
I found 1 more slide menu which is compatible with storyboards:
SASlideMenu
Another storyboard-compatible menu is
ECSlidingViewController
and
ViewDeck
from Sagar's answer. They both have storyboard examples (for the last one link is ViewDeckStoryboardExample)
For anyone else looking for an Android version, take a look at:
android fb like slideout navigation
emerging ui pattern side navigation
I realize you asked about facebook, but now that ios7 is out, and this is the defacto thread i thought id post here.
For an effect similar to the kindle app on ios7 you can use:
https://github.com/romaonthego/REFrostedViewController
If anyone else is looking for a way to implement this in MonoTouch now known as Xamarin.ios, take a look at this article I just found. monotouch slide out navigation
EDIT
I just found that they have a free component for this!
flyoutnavigation
I noticed no one listed this wonderful class... SWRevealController.
I use it with my project apps all the time. It's Easy to use and heavily documented... There are also a few examples John gives to the user to understand how it works or if you'd like to derive your project from... Hope this helps
SHSidebarControllerwith filder effect.
This might be helpful to you.. try this :)
This looks to be the best match for me.
PKRevealController
It has nice scroll effect with finger and moves back on partial drag.
https://github.com/pkluz/PKRevealController
MMDrawerController is very good option.
You can configure many things. try it once
https://github.com/mutualmobile/MMDrawerController
I've been working on a floating-style navigation drawer that I hope people will like. It's on GitHub, take a look.

UITextView Puzzle?

In one project XCode4 intellisence feature shows setContentToHTMLString method of UITextView but in other project intellisence feature not showing setContentToHTMLString this method of UITextView.
I want to use setContentToHTMLString method of UITextView for HTML-based Presentation-only in my textView this works in one Project but not showing even by the intellisence feature of UITextView.
Any Suggestion.
Thanks in Advance....
I don't know why Xcode has this changing behavior, but I would suggest you not to use that method, because it is in a private API, so your app would be rejected by Apple. Possibly the fact that it is private is also why sometimes it is showing (it should not), others it is not.
The way to go to display HTML content is either use a [UIWebView][2], with all its caveats, or try out Three20 styled text facilities, which are quite limited, though.

iPhone keyboard tweak

I would reduce the time to get special characters when keeping a touch on the keyboard. Anyone has a clue?
Thanks.
(Undocumented) Override -[UIKeyboardImpl touchLongPressTimer] to call
-(void)touchLongPressTimer {
[self touchLongPressTimerWithDelay:0.5f]; // default = 1.8125f
}
I strongly doubt this is possible using the public API. You'd have a file bug with Apple to ask them to make this possible. It does however seem unlikely, as it would result in differing behavior between apps in a common control.
You could write your own keyboard control for your own app :)