开发者

A View and Scroll View inside a view

开发者 https://www.devze.com 2023-03-02 06:42 出处:网络
I am building a Calendar app. I have Navigation based app template. Navigation controller has segmented control having namely Daily and Weekly segments.

I am building a Calendar app. I have Navigation based app template. Navigation controller has segmented control having namely Daily and Weekly segments.

Upon clicking the segments i show the relevant View having status bar, navigation controller and bottom toolbar. This is working fine.

My daily view will have a top view and scrollView. Top view will have previous button, next button and date in label. When i add only scrollView inside my dailyView than it works fine, but upon adding top View it gives crash when i t开发者_高级运维ry to scroll the scrollView.

Please suggest is it possible? Else, what could be a better alternative? I even tried adding a second navigation bar (this time using the Interface Builder), button than i am not able to change the date in label. Please let me know if more clarity is required.


I see you have two questions:

Please suggest is it possible? Else, what could be a better alternative?

So I'll go ahead and answer those questions:

What you're trying to do is possible, so there's no need to look for an alternative.

However, I guess the real question is: "Why is it crashing?" and I certainly would answer that, but without crash logs and(/or) code it's nearly impossible to give you a usable answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消