uitabbarcontroller - iPhone tab bar with custom buttons and scrollview -
I'm not trying to achieve a tab bar effect Swipe in the tab bar, which I know, But the Tab Bar style is the opposite of anything I've seen on the iPhone (though it looks a lot easier!).
There are square buttons together in it, space between, and selection of each button / active / inactive status. I see a hard time how this can be a tab bar, but I have no other way do not know. Can anyone explain this?
Edit:
Thanks for the guidance, I had to work using the uibutton
. It was very basic and quite embarrassing that I could not even imagine that in my rootviewcontroller.m
, after I synthesized it homeBtn
- (UIButton *) homeBtn {homeBtn = [[UIButtonTypeCustom with UIButton Button: Maintained by UIButtonTypeCustom]); HomeBtn.frame = CGRectMake (0, 0, 100, 45); [HomeBtn setTitle: @ State for "Home": UIContolstadt Normal]; [HomeBtn setTitle: @ State for "Home": UIContolstad selected); [HomeBtn setBackgroundImage: [UIImage imageNamed: @ "normal.png"] forState: UIControlStateNormal]; [Home button setbackground image: [UIImage imageNamed: @ "disabled.png"] forState: UIControlStateDisabled]; [HomeBtn setBackgroundImage: [UIImage imageNamed: @ "selected.png"] forState: UIControlStateSelected]; [HomeBtn setBackgroundImage: [UIImage imageNamed: @ "highlighted.png"] forState: UIControlStateHighlighted]; [HomeBtn setBackgroundImage: [UIImage imageNamed: @ "Highlight + selected page"] forState: (UIControlStateHighlighted | UIControlStateSelected)]; [Home button at target: SP Action: @Selector (switchpage) for control events: UIControlEventTouchUpInside]; Return home BTN; }
Just sub-class from UISwipeView and you are all set.
How about a scroll view with buttons instead of tabs ?? You can have a different image / background for the normal / selected / disabled state. But then you have to write your code to load different ideas.
Comments
Post a Comment