سؤال

كيف يمكنني تغيير الخط واللون الذي يفصل شريط التنقل و الرأي ؟ فعلى سبيل المثال فليكر تغييره إلى اللون الرمادي (http://www.geardiary.com/wp-content/uploads/2009/09/Screen-shot-2009-09-08-at-8.00.06-AM.png)

افتراضيا لي دائما أسود...

شكرا مقدما على مساعدتكم ، نيكو

هل كانت مفيدة؟

المحلول

كانوا مخصص شريط أسفل وليس التفاح المقدمة منها.أنا لا أعرف الإعداد الخاص بك, ولكن إذا كنت يمكن أن تجعل أو رسم المخصصة الخاصة بك عرض ومع ذلك تريد (يمكنك القيام بذلك) ، عصا أزرار على ذلك (يمكنك أن تفعل ذلك أيضا) ، ثم لديك شريط الأدوات

#define TOOLBAR_HEIGHT 44

CGRect frame = CGRectMake(self.view.bounds.size.height - TOOLBAR_HEIGHT, 0.0, self.view.bounds.size.width, TOOLBAR_HEIGHT);
UIView *customBottomBar = [[UIView alloc] initWithFrame:frame];
[customBottomBar setBackgroundColor: [UIColor grayColor]];

UIButton *button = [[UIButton alloc] initWithFrame:<frame goes here>]
... <button setup>
[customBottomBar addSubview:button];
[button release];

...<more buttons>
...<more buttons>

[self.view addSubview:customBottomBar];
[customBottomBar release];

و للإجابة على سؤالك يمكنك إضافة ما تريد إلى أي عرض حتى أثناء الطريق أنا فقط أقترح هو الأكثر للتخصيص ، قد تحتاج فقط إلى وضع 1pixel عالية شريط ملون في المكان الصحيح (على رأس القائمة شريط الأدوات) من خلال ذلك:

CGRect frame = CGRectMake(self.view.bounds.size.height - TOOLBAR_HEIGHT, 0.0, self.view.bounds.size.width, 1);
UIView *customLine = [[UIView alloc] initWithFrame:frame];
[customLine setBackgroundColor: [UIColor grayColor]];
[self.view addSubview:customLine];
[customLine release];
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top