Up vote 0 down vote favorite share g+ share fb share tw.
I do struggle since quite a while with this page control thing. I do have two code examples (including the one from apple), but I do have a slightly different setup an have no idea what exactly I'm doing wrong. I do have a Tabbar App, displaying buttons on every tab view.
Clicking on one of these should open the page control, showing the content. As I don't step behind what the sample code in fact is doing, I copy and paste snippets where I think they might have to be. Anyone knows a beginners tutorial to set up a page control from scratch?
Including the IB work? I just find code snippets to insert somewhere, and have no idea what to do in IB. Or could at least someone tell me if I get the following right (from the apple example "pageControl"): The contentController just detects wether the app runs on a iPhone or a iPad, and causes the corresponding .
M (PhoneContentController. M in case of an iPhone) to fire, which itself calls "MyViewController", which finally displays the PageControl?! So if I don't need to check if it's an iPad, I need to put the code from PhoneContentController into my Controller that's providing the buttons (which after pressing lead to the DetailView, aka the PageController) or do I need to make a new VC for the PhoneContentController where my button will lead to, so this new controller calls the page control thingy?
Sorry if this is a simple question, but I just can't get the whole thing -. - Thanks in advance! Iphone objective-c uiscrollview uipagecontrol link|improve this question asked May 19 '11 at 14:58Nareille15310 86% accept rate.
It's hard to tell exactly what your difficulty is. It's understandable that you're frustrated, but we need to know, for example, "I tried to make the UIButton do some action, but instead it did this other thing. Here is the code I thought would work.
" Then we will be better able to help you. – Iulius Cæsar May 19 '11 at 17:40 Getting into programming for iOS (or any other platform) without knowing the basics is pure frustration and you'll give up very soon. I suggest you learn from this document first and when you start figuring what's wrong with your code keep on.
In month or two you'll get it. Developer.apple.com/library/mac/documentation/Cocoa/Conceptual/… – TheBlack May 19 '11 at 21:57 Thanks for your comments! I'll definitely make my way through the document you've attached, but I need to get this App done faster (difficult situation..).
I finally got the Page Control to work, after I found an easier example code than the one from apple ( link it's german though..) and they even get further showing views instead of images. My problem now (should I make this a new question? ), can I change the transition?
Probably not, now that I understood the way it works. Anyway, thanks! – Nareille May 20 '11 at 7:45 Yes, please do make that a new question.
That's exactly the kind of specific difficulty that people here will be happy to help with. Please do a search before posting, though, to make sure that there aren't existing questions/answers that can help you. (We are somewhat strict about duplication here.
) (Aside: if you wish to reply to an earlier comment, use @USERNAME, as I have done here, and that particular user will be notified. ) Good luck, and welcome! – Iulius Cæsar May 20 '11 at 20:43.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.