我想显示某种指示来引导用户滚动.
通常当我们触摸UITableView滚动条时,如果需要.但是我希望这个滚动条指示已经显示在我的tableview上.
怎么可能这样做?
我正在使用Core Data框架处理数据库应用程序.在这个应用程序中,我需要显示应用程序当前在iPhone上使用了多少数据.有没有办法做到这一点?
我想将NSDate转换为NSString?怎么可能?
我尝试过这个,但它没有用(它产生异常):
NSString *dateToString=[[NSString alloc] initWithFormat:(NSString *)dateObj];
Run Code Online (Sandbox Code Playgroud)
提前致谢.
我想将颜色设置为transperent.在RGB 255 0 255与alpha 5可以作为transperent,但如何在HEX中得到它?
什么是Transperent颜色的HEX代码提前感谢...
我正在使用Action Sheet实现带有以下代码的datepicker:
- (void)popupActionSheetWithDatePicker {
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:@"Done",nil];
UIDatePicker *picker = [[UIDatePicker alloc] init];
self.datePicker = picker;
[self.datePicker setDatePickerMode:UIDatePickerModeDate];
[sheet addSubview:self.datePicker];
[sheet showInView:self.view];
[sheet setBounds:CGRectMake(0,0, 320,500)];
CGRect pickerRect = self.datePicker.bounds;
pickerRect.origin.y = -80;
self.datePicker.bounds = pickerRect;
[sheet bringSubviewToFront:self.datePicker];
[picker release];
[sheet release]; }
Run Code Online (Sandbox Code Playgroud)
现在,Picker弹出并正常工作除了选择指标以下.
我的意思是On&Above the Selection指标我可以选择日期,月份和年份,但是在选择指标下面我不能选择任何东西,它就像残疾人一样.
找不到原因或解决方案.
如果可能请使用UIActionsheet代码发送任何有效的Datepicker.
提前致谢.
我只需要当前的位置详情,
我已经完成了获取当前位置坐标的部分.
现在我想使用这些坐标获取区域名称等(无地图)详细信息.
怎么做?有可用的示例代码吗?
提前致谢.
我想改变Tabbar的高度.
代码是:
rootController.tabBar.frame= CGRectMake(0,450,320,30);
Run Code Online (Sandbox Code Playgroud)
rootController是TabBarController对象.
在调整标签栏大小后,我在视图和标签栏之间获得了空格.
然后它没有用来调整它的大小.如何正确调整大小以便消除myview和tabbar之间的空间?
| -------------------- |
|
|
|
|
|
| ........................ |在视图和我的tabbar空间之间保持不变
| ............... ......... |
| view1 | view2 |
| -------------------- |
有什么解决方案吗?提前致谢 ...
iphone ×8
cocoa ×1
cocoa-touch ×1
colors ×1
core-data ×1
hex ×1
scrollbar ×1
uidatepicker ×1
uitabbar ×1
uitableview ×1