如何从iOS中获取用户的当前位置?
当用户在我的网站上创建新帐户时,我想检查名称是否已存在.我希望在他们离开用户名输入框并输入密码时运行此检查.
我试过了 :
<input type="text" onkeyup="check_user(this.value)"/>
Run Code Online (Sandbox Code Playgroud) 如何在ios中定义2x2或3X ..数组?像这样
[name=john , age=21 , num=1]
[name=max , age=25 , num=2]
[name=petter , age=22 , num=3]
Run Code Online (Sandbox Code Playgroud)
使用NSMutableArray中的列,您只能添加带有对象的行; 我想要这个数组[] []

如何更改每个组件中的行数我有:
- (NSInteger) pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
{
return 3;
}
Run Code Online (Sandbox Code Playgroud)
但这会改变所有组件行号,
接下来的问题是:如何更改第三个组件中的值,如UIDatePicker:例如:在日期(1月)中,天数为31,但是(2月)天数为(29/28),第三个组件必须更改和值将在1-29或1-28之间.
这是cellForRowAtIndexPath:方法的代码.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *SimpleTableIdentifier = @"SimpleTableIdentifier";
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier: SimpleTableIdentifier];
if (cell == nil) { cell = [[[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleDefault reuseIdentifier:SimpleTableIdentifier] autorelease];
}
NSUInteger row = [indexPath row];
cell.textLabel.text = [array objectAtIndex:row];
return cell;
}
Run Code Online (Sandbox Code Playgroud)
当我[self.tableView reloadData];什么都不用的时候?
iphone ×4
objective-c ×4
ios ×2
uipickerview ×2
ajax ×1
cocoa-touch ×1
html ×1
javascript ×1
uitableview ×1