में छवियां जोड़ना मेरे ऐप में UITextView
है और संपादन के दौरान UITextView
में फ़ोटो डालने के लिए टेक्स्ट व्यू के ठीक नीचे एक बटन है।UITextView
मेरी आवश्यकता यह है कि उपयोगकर्ता उपयोगकर्ता टेक्स्ट को संपादित करने में सक्षम है, और आवश्यकता होने पर छवियों को सम्मिलित करने में सक्षम है।
StackOverflow के एप्लिकेशन की स्वयं की UITextView
के समान:
ओवरराइड लेकिन आप से imageView रोकूँ टेक्स्टव्यू में पाठ को कवर करना? आप छविदृश्य के चारों ओर पाठ कैसे प्रवाह प्राप्त करते हैं? –
सीजीआरएक्ट एआरक्ट = सीजीआरईटीमेक (156, 8, 16, 16); [अटैचमेंट व्यू सेटफ्रेम: एआरक्ट]; UIBezierPath * exclusionPath = [UIBezierPath bezierPathWithRect: CGRectMake (CGRectGetMinX (attachmentView.frame), CGRectGetMinY (attachmentView.frame), CGRectGetWidth (internalTextView.frame), CGRectGetHeight (attachmentView.frame))]; internalTextView.textContainer.exclusionPaths = @ [exclusionPath]; [आंतरिकTextView addSubview: attachmentView]; –