I have an application in which i have set a notification. When notification raise then sound of that is according to device's volume level. So i want to add a progress bar or slider to control device's volume level in my view. For example u have a view in which u have slider/progress bar. When u slide them then level of volume increase or decrease. How control volume of device by any of those tools?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{ static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
// Configure the cell...
if(indexPath.row==0)
{
cell.textLabel.text = @"Vibration";
UISwitch *switch_vib=[[UISwitch alloc] initWithFrame:CGRectMake(210, 9, 94, 27 )];
switch_vib.on=YES;
[cell addSubview:switch_vib];
}
else //if(indexPath.row==1)
cell.textLabel.text = @"Set volumes";
return cell;
}
Thanks in advance...