Если вы хотите, чтобы выделение только мигало, а не оставалось в выбранном состоянии, вы можете вызвать в
didSelectRowAtIndexPath
следующие
[tableView deselectRowAtIndexPath:indexPath animated:YES];
, чтобы оно мигало в выбранном состоянии. и вернуться.
Вот как я обычно это делаю: просто добавьте этих членов в класс MyConfig:
public class MyConfig : ConfigurationSection
{
private static MyConfig _current;
public static MyConfig Current
{
get
{
if (_current == null)
{
switch(ConfigurationStorageType) // where do you want read config from?
{
case ConfigFile: // from .config file
_current = ConfigurationManager.GetSection("MySectionName") as MyConfig;
break;
case ConfigDb: // from database
default:
using (Stream stream = GetMyStreamFromDb())
{
using (XmlTextReader reader = new XmlTextReader(stream))
{
_current = Get(reader);
}
}
break;
}
}
return _current;
}
}
public static MyConfig Get(XmlReader reader)
{
if (reader == null)
throw new ArgumentNullException("reader");
MyConfig section = new MyConfig();
section.DeserializeSection(reader);
return section;
}
}
Таким образом, вам нечего менять в классе MyConfig, но вам все равно нужно изменить способ Ваши клиенты получают к нему доступ с помощью такого кода:
string myProp = MyConfig.Current.MyProperty;