Tag:objective-c

  • IOS Development – Record solutions to problems encountered in the development process and summary of experience – 1

    Time:2019-8-24

    Statement: The following contents are taken from the author’s daily notes from the initial stage to the present. It is unavoidable that there are some misunderstanding deviations in the introduction. Welcome to point out that Long-term update of this article (second address: portal) 1. BadggeVaule bubble tip, self. navigationController. tabBarItem. badgeValue 2. Git terminal command […]

  • Smooth scrolling of UITableView and UICollectionView

    Time:2019-8-24

    As most iOS developers know, displaying sets of data is a rather common task in building a mobile app. Apple’s SDK provides two components to help carry out such a task without having to implement everything from scratch: A table view (UITableView) and a collection view (UICollectionView). As an iOS developer, it is often necessary to […]

  • IOS Development-View Gesture Click Response

    Time:2019-8-23

    Implementing view gesture click response In UIViewController, add the protocol UIGesture Recognizer Delegate, and then add the following code to the. m file: UITapGestureRecognizer* singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; [self.view addGestureRecognizer:singleTap];  // This can be added to any control, such as if you just want to respond to WebView, and I’m filling the entire […]

  • Smooth Paging

    Time:2019-8-23

    Fluent Pagination – no more jumpy scrolling Pagination of iOS Table Views, Android List Views and on the mobile web is a common way of circumventing the technical limitations of power hungry mobile devices and slow mobile networks when dealing with large datasets. For iOS Table Views, Android ListViews and mobile web pages, pagination is […]

  • IOS Development – Judging whether an array is space-time or not, the difference between the two commonly used ways of writing

    Time:2019-8-22

    Some developers, when judging whether an array is empty, write as follows: if (array != nil) Or if (array.count != 0) In fact, strictly speaking, both of them are inadequately considered and unstable, and ignore a more common situation. First of all, the difference between them. array == nil This situation refers to the fact […]

  • IOS Beautiful Toolbar Animation, Beauty Corps Home Page, Simple Notebook, Lost Layout, Label Grouping and other Source Codes

    Time:2019-8-22

    IOS Selected Source Code JPLiquidLayout’s Simple and Easy-to-Use Flow Layout Label group AndStream Swift – Label grouping, radio, multiple selection IOS uses UITableView and UIScrollView to realize Excel, top and bottom of the curriculum. 3D Touch Open Controller Navigation Toolbar IOS Simple Notepad IOS takeaway shop home page SegmentView for every APP IOS Quality Blog […]

  • IOS Development – Error Reporting: clang: error: linker command failed…

    Time:2019-8-21

    clang: error: linker command failed with exit code 1 (use -v to see invocation) IOS development must be a mistake, now summarized as follows, generally these three aspects of the problem, if not which you really troubled. 1. Reference error, put*H is. M. Check all your references. 2. Then you refer to third-party libraries. You […]

  • Overview of Operating System

    Time:2019-8-21

    What we usually call a computer, strictly speaking, should refer to a computer system, which includes hardware (such as CPU, memory, display, printer, etc.) and software (various programs running in hardware). The software part is divided into system software and application software. Application software is the program that people usually use to manage and complete […]

  • IOS Development-Several Use Methods of Strings

    Time:2019-8-20

    Stitching strings // Stitching strings NSString* string1, string2; // Existing strings need to be connected to string1 and string2 // Method 1. String = [NSString initWithFormat:@”%@,%@”, string1, string2]; // Method 2. string = [string1 stringByAppendingString: string2]; // Method 3. string = [string string string ByAppendingFormat:@”%@,%@”, string 1, string 2]; substr // Intercept strings NSString*string [email protected]”sdfsfsfsAdfsdf”; […]

  • CC_UIAtom Real-time Display iOS Writing UI Interface Layout Independent Files

    Time:2019-8-20

    Demonstration Motion Map Download address https://github.com/gwh111/ben… Analysis The author searches the existing famous layout frameworks on the market and studies the layout frameworks of AutoLayout, Masonry, Flexbox, FlexLib, C lassyLiveLayout and Frame successively. Finally, based on Classy and ClassyLiveLayout, a new layout framework is reformed. The main files are CC_UIAtom, UIView+yClass Extend and CC_ClassyExtend group. […]

  • IOS development – how many words can be input remaining + label on textView camouflaged as placeHolder

    Time:2019-8-19

    // How many words are left to enter + label on textView masquerades as placeHolder -(void)textViewDidChange:(UITextView *)textView{ NSInteger inputLength = 40 – self.textView.text.length; NSString * remainder = [NSString string WithFormat:@ “Remaining input%@word,@ (inputLength)]; NSMutableAttributedString * attString = [[NSMutableAttributedString alloc] initWithString:remainder]; [attString addAttributes:@{NSForegroundColorAttributeName:[UIColor redColor], NSFontAttributeName:MyFont(14)} range:[remainder rangeOfString:[NSString stringWithFormat:@”%@”, @(inputLength)]]]; self.changeLabel.attributedText = attString; } -(IBAction)touchOther:(UIControl *)sender { […]

  • IOS Development – How to Slim ViewController

    Time:2019-8-18

    How to slim down ViewController? Separate the DataSource of UITableView into another class. The logic of data acquisition and transformation is separated into another class. Separate the logic of the assembly control into another class. In fact, MVC has only three layers, but it does not limit you to only three layers. Therefore, we can […]