Fixed bug about the cancel button in CPSearchField (changed the type of the button to CPMomentaryChangeButton)

This commit is contained in:
Alexandre Wilhelm
2013-01-24 15:22:45 -08:00
parent f0bb8ce8a7
commit 0f0b315f3b
+1
View File
@@ -189,6 +189,7 @@ var RECENT_SEARCH_PREFIX = @" ";
[_cancelButton setAutoresizingMask:CPViewMinXMargin];
[_cancelButton setTarget:self];
[_cancelButton setAction:@selector(cancelOperation:)];
[_cancelButton setButtonType:CPMomentaryChangeButton];
[self _updateCancelButtonVisibility];
[self addSubview:_cancelButton];
}