[Cocoa]_[初级]_[Removing All Custom Views or what you want to removed]
2014-09-22 18:51
435 查看
1.Removing allCustom Views
2.what you want to removed
[view makeObjectsPerformSelector:@selector(removeFromSuperview)]; [view removeAllObjects];
2.what you want to removed
int i =0; for(CustomView *view in arrayView) { NSLog(@"View tag:%d",view.tag); if(view.viewTag == 1) { [view removeFromSuperview]; [arrayView removeObjectAtIndex:i]; } ++i; }You could distinguish from generated buttons by setting a
tagon your other buttons, if the button has no tag then remove it.example: I set [self setViewTag:1],so I Can removed what I want to remove Custom View.
相关文章推荐
- 45 You want to disable resumable space allocation for all sessions. Which value should be assigned t
- ccah-500 第34题 you want to change a configuration parameter so that it affects all six DataNodes
- go toward to what you don't want to face.
- Journey from a Python noob to a Kaggler on Python So, you want to become a data scientist or may be
- What .h file should be include if you want to use colorref
- 1.1 Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures.
- Do you want to put on or loose weight?
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- The handbag what you want to buy
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- org.apache.hadoop.hbase.DoNotRetryIOException: Class org.apache.phoenix.coprocessor.MetaDataEndpointImpl cannot be loaded Set hbase.table.sanity.checks to false at conf or table descriptor if you want
- VMWare Snapshots: Or, VMSD’s, VMSN’s, CID chains, and what happens when you press Delete All
- 最简单,最自由的开源许可!DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- What You Want To Do
- 85.You want to configure and schedule offline database backups to run automatically. Which tool or u
- C++ debugger package is missing or incompatible - do you want to fix it?
- Follow your heart, always remember who you are, what you want to be.
- 解决configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
- php编译时错误 WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP