{"id":175,"date":"2020-04-01T20:31:16","date_gmt":"2020-04-01T20:31:16","guid":{"rendered":"https:\/\/touhidapps.com\/learn\/?p=175"},"modified":"2024-04-07T13:35:34","modified_gmt":"2024-04-07T07:35:34","slug":"implementing-delegates-in-swift","status":"publish","type":"post","link":"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/","title":{"rendered":"\u09b8\u09c1\u0987\u09ab\u099f \u09b2\u09cd\u09af\u09be\u0999\u09cd\u0997\u09c1\u09df\u09c7\u099c\u09c7 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f \u0995\u09b0\u09be &#8211; Implementing delegates in Swift"},"content":{"rendered":"\n<p><strong>\u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0995\u09bf:&nbsp;<\/strong>\u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09b9\u09b2\u09cb \u09a1\u09bf\u099c\u09be\u0987\u09a8 \u09aa\u09cd\u09af\u09be\u099f\u09be\u09b0\u09cd\u09a8 \u09af\u09be \u0995\u09cb\u09a8 \u098f\u0995\u099f\u09be \u09a8\u09bf\u09b0\u09cd\u09a6\u09bf\u09b7\u09cd\u099f \u0987\u09ad\u09c7\u09a8\u09cd\u099f \u0998\u099f\u09b2\u09c7 \u098f\u0995\u099f\u09be \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f \u09a5\u09c7\u0995\u09c7 \u0985\u09a8\u09cd\u09af \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u09c7 \u09ae\u09c7\u09b8\u09c7\u099c \u09aa\u09be\u09a0\u09be\u09a4\u09c7 \u09b8\u09b9\u09be\u09af\u09bc\u09a4\u09be \u0995\u09b0\u09c7\u0964&nbsp;iOS&nbsp;\u09a1\u09c7\u09ad\u09b2\u09aa\u09be\u09b0\u09a6\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u09b6\u09a8 \u0996\u09c1\u09ac \u0997\u09c1\u09b0\u09c1\u09a4\u09cd\u09ac\u09aa\u09c2\u09b0\u09cd\u09a3 \u09a1\u09bf\u099c\u09be\u0987\u09a8 \u09aa\u09cd\u09af\u09be\u099f\u09be\u09b0\u09cd\u09a3 \u0964 \u09ae\u09a8\u09c7 \u0995\u09b0\u09bf, A&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f&nbsp;B&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u0995\u09c7 \u0995\u09b2 \u0995\u09b0\u09c7 \u0995\u09cb\u09a8 \u098f\u0995\u099f\u09bf \u0995\u09be\u099c \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964 \u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0 \u0995\u09be\u099c\u0997\u09c1\u09b2\u09cb \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09af\u0996\u09a8 \u0995\u09be\u099c\u099f\u09bf \u09b6\u09c7\u09b7 \u09b9\u09ac\u09c7, A&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u0995\u09c7 \u099c\u09be\u09a8\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09c7&nbsp;B&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f \u0995\u09be\u099c\u099f\u09bf \u09b6\u09c7\u09b7 \u0995\u09b0\u09c7\u099b\u09c7\u0964 \u098f\u099f\u09be \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09aa\u09cd\u09af\u09be\u099f\u09be\u09b0\u09cd\u09a8 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09af\u09bc\u0964<\/p>\n\n\n\n<p>\u098f\u0996\u09a8,&nbsp;\u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u098f\u0995\u099f\u09be \u0995\u09cd\u09b2\u09be\u09b8 \u09a5\u09c7\u0995\u09c7 \u0985\u09a8\u09cd\u09af \u0995\u09cd\u09b2\u09be\u09b8\u09c7 \u09a1\u09c7\u099f\u09be \u09aa\u09be\u09b8 \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u0995\u09be\u09b8\u09cd\u099f\u09ae \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09af\u09be\u09af\u09bc \u09a4\u09be \u09a6\u09c7\u0996\u09ac\u0964&nbsp;\u098f\u099c\u09a8\u09cd\u09af \u0986\u09ae\u09b0\u09be \u098f\u0995\u099f\u09be \u099b\u09cb\u099f \u098f\u0995\u099f\u09be \u098f\u09cd\u09af\u09be\u09aa \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09ac\u0964 \u09aa\u09cd\u09b0\u09a5\u09ae\u09c7&nbsp;<a href=\"https:\/\/github.com\/jamesrochabrun\/DelegateTutorial\">\u098f\u0987 \u09aa\u09cd\u09b0\u099c\u09c7\u0995\u09cd\u099f<\/a>&nbsp;\u099f\u09bf \u09a1\u09be\u0989\u09a8\u09b2\u09cb\u09a1 \u0995\u09b0\u09c7 \u09b0\u09be\u09a8 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964&nbsp;<\/p>\n\n\n\n<p>\u098f\u09cd\u09af\u09be\u09aa\u099f\u09bf\u09a4\u09c7 \u09a6\u09c1\u0987\u099f\u09bf \u0995\u09cd\u09b2\u09be\u09b8 \u0986\u099b\u09c7\u0964 \u09ad\u09bf\u0989 \u0995\u09a8\u09cd\u099f\u09cd\u09b0\u09cb\u09b2\u09be\u09b0&nbsp;A&nbsp;\u098f\u09ac\u0982 \u09ad\u09bf\u0989 \u0995\u09a8\u09cd\u099f\u09cd\u09b0\u09cb\u09b2\u09be\u09b0&nbsp;B&nbsp;\u0964&nbsp;B&nbsp;\u098f\u09b0 \u09a6\u09c1\u0987\u099f\u09be \u09ad\u09bf\u0989 \u0986\u099b\u09c7 \u09af\u09be\u09a6\u09c7\u09b0 \u099f\u09cd\u09af\u09be\u09aa \u0995\u09b0\u09c7 \u09ad\u09bf\u0989 \u0995\u09a8\u09cd\u099f\u09cd\u09b0\u09cb\u09b2\u09be\u09b0\u09c7\u09b0 \u09ac\u09cd\u09af\u09be\u0995\u0997\u09cd\u09b0\u09be\u0989\u09a8\u09cd\u09a1 \u0995\u09be\u09b2\u09be\u09b0 \u099a\u09c7\u09a8\u09cd\u099c \u0995\u09b0\u09be \u09af\u09be\u09af\u09bc\u0964 \u098f\u0996\u09a8&nbsp;B&nbsp;\u098f\u09b0 \u09ad\u09bf\u0989 \u09af\u09bc\u09c7 \u099f\u09cd\u09af\u09be\u09aa \u0995\u09b0\u09b2\u09c7&nbsp;A&nbsp;\u098f\u09b0 \u09ac\u09cd\u09af\u0995\u0997\u09cd\u09b0\u09be\u0989\u09a8\u09cd\u09a1 \u0995\u09be\u09b2\u09be\u09b0 \u099a\u09c7\u09a8\u09cd\u099c \u0995\u09b0\u09be\u09b0 \u0995\u09be\u099c\u099f\u09bf \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964<\/p>\n\n\n\n<p>\u09aa\u09cd\u09b0\u09ac\u09b2\u09c7\u09ae \u09b9\u09b2\u09cb \u09af\u09c7,&nbsp;\u09ad\u09bf\u0989\u0997\u09c1\u09b2\u09cb \u0995\u09cd\u09b2\u09be\u09b8&nbsp;B&nbsp;\u09a4\u09c7 \u0986\u099b\u09c7 \u098f\u09ac\u0982 \u0995\u09cd\u09b2\u09be\u09b8&nbsp;A&nbsp;\u09a4\u09c7 \u0995\u09cb\u09a8 \u09af\u09cb\u0997\u09be\u09af\u09cb\u0997 \u09a8\u09be\u0987\u0964 \u09a4\u09be\u0987 \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u098f\u09ae\u09a8 \u098f\u0995\u099f\u09be \u0989\u09aa\u09be\u09af\u09bc \u09ac\u09c7\u09b0 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09be\u09a4\u09c7 \u0986\u09ae\u09b0\u09be \u09a6\u09c1\u099f\u09bf \u0995\u09cd\u09b2\u09be\u09b8\u09c7 \u09af\u09cb\u0997\u09be\u09af\u09cb\u0997 \u0995\u09b0\u09a4\u09c7 \u09aa\u09be\u09b0\u09bf \u0986\u09b0 \u098f \u099c\u09a8\u09cd\u09af \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u0986\u099b\u09c7 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u09b6\u09a8\u0964<\/p>\n\n\n\n<p>\u09ec \u09a7\u09be\u09aa\u09c7 \u09ad\u09be\u0997 \u0995\u09b0\u09c7 \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f\u09b6\u09a8 \u09a6\u09c7\u0996\u09be\u09a8\u09cb \u09b9\u09b2\u09cb \u09af\u09be\u09a4\u09c7 \u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0\u09a4\u09c7 \u09aa\u09cd\u09b0\u09af\u09bc\u09cb\u099c\u09a8\u09c7 \u098f\u099f\u09be\u0995\u09c7 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09af\u09be\u09af\u09bc\u0964<\/p>\n\n\n\n<p><strong>\u09a7\u09be\u09aa \u2013 \u09e7:<\/strong>&nbsp;ClassBVC&nbsp;\u09ab\u09be\u0987\u09b2\u09c7&nbsp;MARK: step 1&nbsp;\u098f \u09a8\u09bf\u099a\u09c7\u09b0 \u0995\u09cb\u09a1 \u09b2\u09bf\u0996\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/MARK: step 1 Add Protocol here.\nprotocol ClassBVCDelegate: class {\n    func changeBackgroundColor(_ color: UIColor?)\n}<\/code><\/pre>\n\n\n\n<p>\u09aa\u09cd\u09b0\u09a5\u09ae \u09a7\u09be\u09aa \u09b9\u09b2\u09cb \u09aa\u09cd\u09b0\u099f\u09cb\u0995\u09b2 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be\u0964 \u098f\u0996\u09a8 \u0986\u09ae\u09b0\u09be&nbsp;Class B&nbsp;\u09a4\u09c7 \u09aa\u09cd\u09b0\u099f\u09cb\u0995\u09b2 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09ac\u0964 \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f\u09c7\u09b6\u09a8\u09c7\u09b0 \u09b0\u09bf\u0995\u09cb\u09af\u09bc\u09be\u09b0\u09ae\u09c7\u09a8\u09cd\u099f\u09c7\u09b0 \u0989\u09aa\u09b0 \u09ad\u09bf\u09a4\u09cd\u09a4\u09bf \u0995\u09b0\u09c7 \u09aa\u09cd\u09b0\u099f\u09cb\u0995\u09b2\u09c7\u09b0 \u09ad\u09bf\u09a4\u09b0\u09c7 \u09af\u09a4 \u0996\u09c1\u09b6\u09bf \u09ab\u09be\u0982\u09b6\u09a8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09be \u09af\u09be\u09af\u09bc\u0964 \u098f\u0987 \u0985\u09ac\u09b8\u09cd\u09a5\u09be\u09af\u09bc, \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u09b6\u09c1\u09a7\u09c1 \u098f\u0995\u099f\u09be \u09b8\u09be\u09a7\u09be\u09b0\u09a3 \u09ab\u09be\u0982\u09b6\u09a8 \u0986\u099b\u09c7 \u09af\u09be \u098f\u0995\u099f\u09bf \u0985\u09aa\u09b6\u09a8\u09be\u09b2&nbsp;UIColor&nbsp;\u0986\u09b0\u09cd\u0997\u09c1\u09ae\u09c7\u09a8\u09cd\u099f \u0997\u09cd\u09b0\u09b9\u09a8 \u0995\u09b0\u09c7\u0964<\/p>\n\n\n\n<p><em>\u09aa\u09cd\u09b0\u099f\u09cb\u0995\u09b2\u09c7\u09b0 \u09a8\u09be\u09ae\u09c7<\/em>&nbsp;Class&nbsp;<em>\u098f\u09b0 \u09a8\u09be\u09ae\u09c7\u09b0 \u09aa\u09b0<\/em>&nbsp;delegate&nbsp;<em>\u09b6\u09ac\u09cd\u09a6\u099f\u09bf \u09b0\u09be\u0996\u09be \u0989\u099a\u09bf\u09a4 \u098f\u099f\u09be \u09b9\u09b2\u09cb&nbsp;<\/em>Good Practice.&nbsp;<em>\u098f\u0995\u09cd\u09b7\u09c7\u09a4\u09cd\u09b0\u09c7 \u09a8\u09be\u09ae \u09b9\u09ac\u09c7&nbsp;<\/em>ClassBVCDelegate.<\/p>\n\n\n\n<p><strong>\u09a7\u09be\u09aa \u2013 \u09e8:<\/strong>&nbsp;ClassBVC&nbsp;\u09ab\u09be\u0987\u09b2\u09c7&nbsp;MARK: step 2&nbsp;\u09a4\u09c7 \u09a8\u09bf\u099a\u09c7\u09b0 \u0995\u09cb\u09a1 \u09b2\u09bf\u0996\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/MARK: step 2 Create a delegate property here.\nweak var delegate: ClassBVCDelegate?<\/code><\/pre>\n\n\n\n<p>\u098f\u0996\u09be\u09a8\u09c7 \u0986\u09ae\u09b0\u09be \u0995\u09cd\u09b2\u09be\u09b8\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u09b6\u09c1\u09a7\u09c1 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f\u09c7\u09b0 \u09aa\u09cd\u09b0\u09cb\u09aa\u09be\u09b0\u09cd\u099f\u09bf \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c7\u099b\u09bf\u0964 \u098f\u0987 \u09aa\u09cd\u09b0\u09cb\u09aa\u09be\u09b0\u09cd\u099f\u09bf\u0995\u09c7 \u0985\u09ac\u09b6\u09cd\u09af\u0987&nbsp;protocol&nbsp;\u099f\u09be\u0987\u09aa \u09b9\u09a4\u09c7 \u09b9\u09ac\u09c7 \u098f\u09ac\u0982 \u098f\u099f\u09be \u0985\u09aa\u09b6\u09a8\u09be\u09b2 \u09b9\u0993\u09af\u09bc\u09be \u0989\u099a\u09bf\u09a4\u0964 \u09a1\u09c7\u099f\u09be \u09af\u09c7\u09a8 \u09ae\u09c7\u09ae\u09cb\u09b0\u09bf\u09a4\u09c7 \u099c\u09ae\u09be \u09a8\u09be \u09a5\u09be\u0995\u09c7 \u098f\u09ac\u0982 \u09ae\u09c7\u09ae\u09cb\u09b0\u09bf \u09b2\u09bf\u0995 \u09a8\u09be \u09b9\u09af\u09bc \u098f\u099c\u09a8\u09cd\u09af \u09aa\u09cd\u09b0\u09cb\u09aa\u09be\u09b0\u09cd\u099f\u09bf\u09b0 \u09b6\u09c1\u09b0\u09c1\u09a4\u09c7&nbsp;weak&nbsp;\u0995\u09c0-\u0993\u09af\u09bc\u09be\u09b0\u09cd\u09a1 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u0989\u099a\u09bf\u09a4\u0964<\/p>\n\n\n\n<p><strong>\u09a7\u09be\u09aa&nbsp;\u2013&nbsp;\u09e9<\/strong><strong>:<\/strong>&nbsp;ClassBVC&nbsp;\u09ab\u09be\u0987\u09b2\u09c7&nbsp;MARK: step 3&nbsp;\u09a4\u09c7 handleTap \u09ae\u09c7\u09a5\u09a1\u09c7\u09b0 \u09ad\u09bf\u09a4\u09b0\u09c7 \u09a8\u09bf\u099a\u09c7\u09b0 \u0995\u09cb\u09a1 \u09b2\u09bf\u0996\u09a4\u09c7 \u09b9\u09ac\u09c7:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/MARK: step 3 Add the delegate method call here.\ndelegate?.changeBackgroundColor(tapGesture.view?.backgroundColor)<\/code><\/pre>\n\n\n\n<p>\u098f\u0995\u099f\u09be \u09ac\u09cd\u09af\u09be\u09aa\u09be\u09b0 \u099c\u09be\u09a8\u09be \u0989\u099a\u09bf\u09a4,&nbsp;\u098f\u09cd\u09af\u09be\u09aa \u09b0\u09be\u09a8 \u0995\u09b0\u09c1\u09a8 \u098f\u09ac\u0982 \u09af\u09c7 \u0995\u09cb\u09a8 \u09ad\u09bf\u0989\u09a4\u09c7 \u099f\u09cd\u09af\u09be\u09aa \u0995\u09b0\u09c1\u09a8,&nbsp;\u0995\u09cb\u09a8 \u09a8\u09a4\u09c1\u09a8 \u0995\u09bf\u099b\u09c1 \u0998\u099f\u09ac\u09c7 \u09a8\u09be \u0986\u09b0 \u098f\u099f\u09be\u0987 \u09a0\u09bf\u0995 \u0986\u099b\u09c7 \u0995\u09bf\u09a8\u09cd\u09a4\u09c1 \u09af\u09c7 \u099c\u09bf\u09a8\u09bf\u09b8\u099f\u09be \u09aa\u09af\u09bc\u09c7\u09a8\u09cd\u099f \u0995\u09b0\u09a4\u09c7 \u099a\u09be\u099a\u09cd\u099b\u09bf \u09af\u09c7 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0995\u09b2 \u09b9\u09b2\u09c7\u0993 \u098f\u09cd\u09af\u09be\u09aa\u099f\u09be \u0995\u09cd\u09b0\u09be\u09b6 \u0995\u09b0\u099b\u09c7 \u09a8\u09be \u0995\u09be\u09b0\u09a8 \u0986\u09ae\u09b0\u09be \u098f\u099f\u09be\u0995\u09c7&nbsp;Optional value&nbsp;\u09b9\u09bf\u09b8\u09c7\u09ac\u09c7 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c7\u099b\u09bf \u0986\u09b0 \u098f\u099c\u09a8\u09cd\u09af\u0987 \u098f\u099f\u09be \u0995\u09cd\u09b0\u09be\u09b6 \u0995\u09b0\u099b\u09c7 \u09a8\u09be \u09af\u09a6\u09bf\u0993 \u098f\u0996\u09a8\u09cb \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09a8\u09be\u0987\u0964<\/p>\n\n\n\n<p>\u098f\u0996\u09a8 \u0986\u09ae\u09b0\u09be&nbsp;ClassAVC&nbsp;\u09ab\u09be\u0987\u09b2\u09c7 \u09af\u09be\u09ac \u0986\u09b0 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09ac\u0964<\/p>\n\n\n\n<p><strong>\u09a7\u09be\u09aa &#8211; \u09ea:<\/strong>&nbsp;ClassAVC&nbsp;\u09ab\u09be\u0987\u09b2\u09c7&nbsp;MARK: step 4&nbsp;\u09a4\u09c7 handleTap \u09ae\u09c7\u09a5\u09a1\u09c7\u09b0 \u09ad\u09bf\u09a4\u09b0\u09c7&nbsp;class type&nbsp;\u098f\u09b0 \u09aa\u09b0&nbsp;&nbsp;\u09a8\u09bf\u099a\u09c7\u09b0 \u0995\u09cb\u09a1 \u09b2\u09bf\u0996\u09a4\u09c7 \u09b9\u09ac\u09c7:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/MARK: step 4 conform the protocol here.\nclass ClassAVC: UIViewController, ClassBVCDelegate {<\/code><\/pre>\n\n\n\n<p>\u098f\u0996\u09a8&nbsp;ClassAVC&nbsp;\u0995\u09cd\u09b2\u09be\u09b8&nbsp;ClassBVCDelegate protocol&nbsp;\u0995\u09c7 \u0997\u09cd\u09b0\u09b9\u09a3 (Implement) \u0995\u09b0\u09c7\u0964 \u098f\u0996\u09a8 \u0995\u09ae\u09cd\u09aa\u09be\u0987\u09b2\u09be\u09b0 \u098f\u0995\u099f\u09be \u0987\u09b0\u09b0 \u09a6\u09c7\u0996\u09be\u09ac\u09c7 \u09af\u09c7 \u201cType ClassAVC does not conform to protocol ClassBVCDelegate\u201d&nbsp;\u098f\u09ac\u0982 \u098f\u09b0 \u09ae\u09be\u09a8\u09c7 \u09b9\u09b2\u09cb \u09af\u09c7 \u0986\u09aa\u09a8\u09bf \u098f\u0996\u09a8\u09cb \u09aa\u09cd\u09b0\u09cb\u099f\u09cb\u0995\u09b2\u09c7\u09b0 \u09ae\u09c7\u09a5\u09a1 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7\u09a8\u09a8\u09bf\u0964 \u098f\u0995\u099f\u09bf \u0995\u09cd\u09b2\u09be\u09b8\u09c7 \u0995\u09cb\u09a8 \u09aa\u09cd\u09b0\u09cb\u099f\u09cb\u0995\u09b2\u0995\u09c7 \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f \u0995\u09b0\u09be \u098f\u0995\u099f\u09be \u099a\u09c1\u0995\u09cd\u09a4\u09bf \u09b8\u0987 \u0995\u09b0\u09be\u09b0 \u09ae\u09a4 \u09af\u09c7\u0996\u09be\u09a8\u09c7 \u09ac\u09b2\u09be \u0986\u099b\u09c7 \u09af\u09c7 \u2018\u0995\u09cb\u09a8 \u0995\u09cd\u09b2\u09be\u09b8 \u0986\u09ae\u09be\u0995\u09c7 \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f \u0995\u09b0\u09b2\u09c7 \u0985\u09ac\u09b6\u09cd\u09af\u0987 \u0986\u09ae\u09be\u09b0 \u09ab\u09be\u0982\u09b6\u09a8 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u2019\u0964 \u098f\u09b0 \u09ae\u09be\u09a8\u09c7 \u09b9\u09b2\u09cb \u09af\u09c7 \u098f\u0996\u09a8 \u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u09aa\u09cd\u09b0\u09cb\u099f\u09cb\u0995\u09b2\u09c7\u09b0 \u09ae\u09c7\u09a5\u09a1 \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f (\u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0) \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7&nbsp;ClassAVC&nbsp;\u0995\u09cd\u09b2\u09be\u09b8\u09c7\u0964<\/p>\n\n\n\n<p><strong>\u09a8\u09cb\u099f:&nbsp;<\/strong>\u09af\u09a6\u09bf \u0986\u09aa\u09a8\u09bf \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u09bf\u09ad \u09b8\u09bf \u0995\u09b0\u09c7 \u09a5\u09be\u0995\u09c7\u09a8 \u09a4\u09ac\u09c7 \u09b9\u09af\u09bc\u09a4\u09cb \u09ad\u09be\u09ac\u099b\u09c7\u09a8 \u09af\u09c7 \u098f\u0987 \u0987\u09b0\u09b0 \u09a5\u09c7\u0995\u09c7 \u09ae\u09c1\u0995\u09cd\u09a4\u09bf \u09aa\u09c7\u09a4\u09c7 \u09ae\u09c7\u09a5\u09a1\u0995\u09c7 \u0985\u09aa\u09b6\u09a8\u09be\u09b2 \u0995\u09b0\u09c7 \u09a6\u09bf\u09ac\u09c7\u09a8 \u0995\u09bf\u09a8\u09cd\u09a4\u09c1 \u09b8\u09c1\u0987\u09ab\u099f\u09c7 \u0985\u09aa\u09b6\u09a8\u09be\u09b2 \u09ae\u09c7\u09a5\u09a1 \u09b8\u09be\u09aa\u09cb\u09b0\u09cd\u099f \u0995\u09b0\u09c7 \u09a8\u09be\u0964 \u098f\u099f\u09be \u0995\u09b0\u09a4\u09c7 \u099a\u09be\u0987\u09b2\u09c7 \u09aa\u09cd\u09b0\u09cb\u099f\u09cb\u0995\u09b2\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u098f\u0995\u09cd\u09b8\u099f\u09c7\u09a8\u09b6\u09a8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7 \u0985\u09a5\u09ac\u09be \u09aa\u09cd\u09b0\u09cb\u099f\u09cb\u0995\u09b2\u09c7\u09b0 \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f\u09c7\u09b6\u09a8\u09c7&nbsp;@objc&nbsp;\u0995\u09c0-\u0993\u09af\u09bc\u09be\u09b0\u09cd\u09a1 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964<\/p>\n\n\n\n<p>Here is a&nbsp;<a href=\"https:\/\/www.avanderlee.com\/swift-2-0\/optional-protocol-methods\/\">good article<\/a>&nbsp;about optional methods.<\/p>\n\n\n\n<p><strong>\u09a7\u09be\u09aa&nbsp;&#8211;&nbsp;\u09eb<\/strong><strong>:<\/strong>&nbsp;ClassAVC&nbsp;\u09ab\u09be\u0987\u09b2\u09c7&nbsp;prepareforsegue method&nbsp;\u098f\u09b0 \u09ad\u09bf\u09a4\u09b0\u09c7&nbsp;MARK: step&nbsp;\u09eb \u098f \u09a8\u09bf\u099a\u09c7\u09b0 \u0995\u09cb\u09a1 \u09b2\u09bf\u0996\u09a4\u09c7 \u09b9\u09ac\u09c7:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ MARK: step 5 create a reference of Class B and bind them through the prepareforsegue method.\nif let nav = segue.destination as? UINavigationController, let classBVC = nav.topViewController as? ClassBVC {\n    classBVC.delegate = self\n}<\/code><\/pre>\n\n\n\n<p>\u098f\u0996\u09be\u09a8\u09c7 \u0986\u09ae\u09b0\u09be \u09b6\u09c1\u09a7\u09c1&nbsp;ClassBVC&nbsp;\u098f\u09b0 \u098f\u0995\u099f\u09be \u0987\u09a8\u09cd\u09b8\u099f\u09c7\u09a8\u09cd\u09b8 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c7\u099b\u09bf \u098f\u09ac\u0982 \u098f\u09b0 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f&nbsp;self&nbsp;\u098f\u09cd\u09af\u09be\u09b8\u09be\u0987\u09a8 \u0995\u09b0\u09c7\u099b\u09bf\u0964 \u0995\u09bf\u09a8\u09cd\u09a4\u09c1 \u098f\u0996\u09be\u09a8\u09c7&nbsp;self&nbsp;\u099f\u09be \u0986\u09ac\u09be\u09b0 \u0995\u09bf \u099c\u09bf\u09a8\u09bf\u09b8?&nbsp;self&nbsp;\u09b9\u09b2\u09cb&nbsp;ClassAVC (\u09af\u09c7 \u0995\u09cd\u09b2\u09be\u09b8\u09c7 \u0995\u09cb\u09a1 \u09b2\u09bf\u0996\u099b\u09bf)&nbsp;\u09af\u09be\u0995\u09c7 \u0985\u09b0\u09cd\u09aa\u09a8 \u0995\u09b0\u09be \u09ac\u09be \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0995\u09b0\u09be \u09b9\u09af\u09bc\u09c7\u099b\u09c7\u0964<\/p>\n\n\n\n<p><strong>\u09a7\u09be\u09aa&nbsp;&#8211;&nbsp;\u09ec:&nbsp;<\/strong>\u0985\u09ac\u09b6\u09c7\u09b7\u09c7,&nbsp;ClassAVC&nbsp;\u09ab\u09be\u0987\u09b2\u09c7&nbsp;MARK: step&nbsp;\u09ec \u098f \u0997\u09bf\u09af\u09bc\u09c7 \u09aa\u09cd\u09b0\u09cb\u099f\u09cb\u0995\u09b2\u09c7\u09b0 \u09ab\u09be\u0982\u09b6\u09a8 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964&nbsp;func changeBackgroundColor&nbsp;\u09b2\u09bf\u0996\u09a4\u09c7 \u09a5\u09be\u0995\u09b2\u09c7 \u0985\u099f\u09cb-\u0995\u09ae\u09aa\u09cd\u09b2\u09bf\u099f \u09b8\u09be\u099c\u09c7\u09b6\u09a8 \u0986\u09b8\u09ac\u09c7\u0964 \u098f\u09b0 \u09ad\u09bf\u09a4\u09b0\u09c7 \u09aa\u09cd\u09b0\u09af\u09bc\u09cb\u099c\u09a8 \u09ae\u09a4 \u09af\u09c7 \u0995\u09cb\u09a8 \u0995\u09cb\u09a1 \u09b2\u09bf\u0996\u09be \u09af\u09be\u09ac\u09c7\u0964 \u098f\u0987 \u0989\u09a6\u09be\u09b9\u09b0\u09a3\u09c7 \u09b6\u09c1\u09a7\u09c1 \u0995\u09be\u09b2\u09be\u09b0 \u099a\u09c7\u09a8\u09cd\u099c \u0995\u09b0\u09be \u09b9\u09b2\u09cb\u0964<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/MARK: step 6 finally use the method of the contract\nfunc changeBackgroundColor(_ color: UIColor?) {\n    view.backgroundColor = color\n}<\/code><\/pre>\n\n\n\n<p>\u0986\u09ae\u09be\u09a6\u09c7\u09b0 \u0995\u09be\u099c \u09b6\u09c7\u09b7\u0964 \u098f\u0996\u09a8 \u098f\u09cd\u09af\u09be\u09aa\u099f\u09bf \u09b0\u09be\u09a8 \u0995\u09b0\u09bf&#8230;<\/p>\n\n\n\n<p>\u0996\u09c7\u09af\u09bc\u09be\u09b2 \u0995\u09b0\u09b2\u09c7 \u09a6\u09c7\u0996\u09be \u09af\u09be\u09ac\u09c7,&nbsp;\u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09b8\u09ac \u09af\u09be\u09af\u09bc\u0997\u09be\u09af\u09bc \u0986\u099b\u09c7 \u098f\u09ac\u0982 \u0986\u09aa\u09a8\u09bf \u098f\u099f\u09be \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u099b\u09c7\u09a8\u0964 \u09af\u09a6\u09bf \u0986\u09aa\u09a8\u09bf \u099f\u09c7\u09ac\u09bf\u09b2 \u09ad\u09bf\u0989 \u09a4\u09c8\u09b0\u09bf \u0995\u09b0\u09c7 \u09a5\u09be\u0995\u09c7\u09a8 \u09a4\u09be\u09b9\u09b2\u09c7 \u0986\u09aa\u09a8\u09bf \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u09b6\u09a8 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7\u099b\u09c7\u09a8\u0964&nbsp;UIKit \/&nbsp;\u0985\u09a8\u09cd\u09af\u09be\u09a8\u09cd\u09af \u09ab\u09cd\u09b0\u09c7\u0987\u09ae\u0993\u09af\u09bc\u09be\u09b0\u09cd\u0995\u09c7\u09b0 \u0985\u09a8\u09c7\u0995 \u0995\u09cd\u09b2\u09be\u09b8 \u0986\u099b\u09c7 \u09af\u09c7\u0997\u09c1\u09b2\u09cb \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f\u09c7\u09b0 \u09ae\u09be\u09a7\u09cd\u09af\u09ae\u09c7 \u0995\u09be\u099c \u0995\u09b0\u09c7\u0964 \u098f\u099f\u09be \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09b2\u09c7 \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u09c7\u09b0&nbsp;Tight Coupling&nbsp;\u09b9\u09af\u09bc \u09a8\u09be\u0964 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u09b6\u09a8 \u09a6\u09c1\u0987\u099f\u09bf \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u09c7\u09b0 \u09ae\u09a7\u09cd\u09af\u09c7&nbsp;One to One&nbsp;\u09b0\u09bf\u09b2\u09c7\u09b6\u09a8\u09b6\u09c0\u09aa \u0997\u09a0\u09a8 \u0995\u09b0\u09c7\u0964<\/p>\n\n\n\n<p class=\"has-text-align-center\">&#8211;\u09e6&#8211;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0995\u09bf:&nbsp;\u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09b9\u09b2\u09cb \u09a1\u09bf\u099c\u09be\u0987\u09a8 \u09aa\u09cd\u09af\u09be\u099f\u09be\u09b0\u09cd\u09a8 \u09af\u09be \u0995\u09cb\u09a8 \u098f\u0995\u099f\u09be \u09a8\u09bf\u09b0\u09cd\u09a6\u09bf\u09b7\u09cd\u099f \u0987\u09ad\u09c7\u09a8\u09cd\u099f \u0998\u099f\u09b2\u09c7 \u098f\u0995\u099f\u09be \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f \u09a5\u09c7\u0995\u09c7 \u0985\u09a8\u09cd\u09af \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u09c7 \u09ae\u09c7\u09b8\u09c7\u099c \u09aa\u09be\u09a0\u09be\u09a4\u09c7 \u09b8\u09b9\u09be\u09af\u09bc\u09a4\u09be \u0995\u09b0\u09c7\u0964&nbsp;iOS&nbsp;\u09a1\u09c7\u09ad\u09b2\u09aa\u09be\u09b0\u09a6\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u09b6\u09a8 \u0996\u09c1\u09ac \u0997\u09c1\u09b0\u09c1\u09a4\u09cd\u09ac\u09aa\u09c2\u09b0\u09cd\u09a3 \u09a1\u09bf\u099c\u09be\u0987\u09a8 \u09aa\u09cd\u09af\u09be\u099f\u09be\u09b0\u09cd\u09a3 \u0964 \u09ae\u09a8\u09c7 \u0995\u09b0\u09bf, A&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f&nbsp;B&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u0995\u09c7 \u0995\u09b2 \u0995\u09b0\u09c7 \u0995\u09cb\u09a8 \u098f\u0995\u099f\u09bf \u0995\u09be\u099c \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964 \u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0 \u0995\u09be\u099c\u0997\u09c1\u09b2\u09cb \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09af\u0996\u09a8 \u0995\u09be\u099c\u099f\u09bf \u09b6\u09c7\u09b7 \u09b9\u09ac\u09c7, A&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u0995\u09c7 \u099c\u09be\u09a8\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09c7&nbsp;B&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f \u0995\u09be\u099c\u099f\u09bf \u09b6\u09c7\u09b7 \u0995\u09b0\u09c7\u099b\u09c7\u0964 \u098f\u099f\u09be \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":177,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[181,149,182],"tags":[177,178,173,183],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u09b8\u09c1\u0987\u09ab\u099f \u09b2\u09cd\u09af\u09be\u0999\u09cd\u0997\u09c1\u09df\u09c7\u099c\u09c7 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f \u0995\u09b0\u09be - Implementing delegates in Swift - Touhid Apps!<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u09b8\u09c1\u0987\u09ab\u099f \u09b2\u09cd\u09af\u09be\u0999\u09cd\u0997\u09c1\u09df\u09c7\u099c\u09c7 \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0987\u09ae\u09aa\u09cd\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f \u0995\u09b0\u09be - Implementing delegates in Swift - Touhid Apps!\" \/>\n<meta property=\"og:description\" content=\"\u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u0995\u09bf:&nbsp;\u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u099f \u09b9\u09b2\u09cb \u09a1\u09bf\u099c\u09be\u0987\u09a8 \u09aa\u09cd\u09af\u09be\u099f\u09be\u09b0\u09cd\u09a8 \u09af\u09be \u0995\u09cb\u09a8 \u098f\u0995\u099f\u09be \u09a8\u09bf\u09b0\u09cd\u09a6\u09bf\u09b7\u09cd\u099f \u0987\u09ad\u09c7\u09a8\u09cd\u099f \u0998\u099f\u09b2\u09c7 \u098f\u0995\u099f\u09be \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f \u09a5\u09c7\u0995\u09c7 \u0985\u09a8\u09cd\u09af \u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u09c7 \u09ae\u09c7\u09b8\u09c7\u099c \u09aa\u09be\u09a0\u09be\u09a4\u09c7 \u09b8\u09b9\u09be\u09af\u09bc\u09a4\u09be \u0995\u09b0\u09c7\u0964&nbsp;iOS&nbsp;\u09a1\u09c7\u09ad\u09b2\u09aa\u09be\u09b0\u09a6\u09c7\u09b0 \u099c\u09a8\u09cd\u09af \u09a1\u09c7\u09b2\u09bf\u0997\u09c7\u09b6\u09a8 \u0996\u09c1\u09ac \u0997\u09c1\u09b0\u09c1\u09a4\u09cd\u09ac\u09aa\u09c2\u09b0\u09cd\u09a3 \u09a1\u09bf\u099c\u09be\u0987\u09a8 \u09aa\u09cd\u09af\u09be\u099f\u09be\u09b0\u09cd\u09a3 \u0964 \u09ae\u09a8\u09c7 \u0995\u09b0\u09bf, A&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f&nbsp;B&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u0995\u09c7 \u0995\u09b2 \u0995\u09b0\u09c7 \u0995\u09cb\u09a8 \u098f\u0995\u099f\u09bf \u0995\u09be\u099c \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964 \u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0 \u0995\u09be\u099c\u0997\u09c1\u09b2\u09cb \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09af\u0996\u09a8 \u0995\u09be\u099c\u099f\u09bf \u09b6\u09c7\u09b7 \u09b9\u09ac\u09c7, A&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f\u0995\u09c7 \u099c\u09be\u09a8\u09a4\u09c7 \u09b9\u09ac\u09c7 \u09af\u09c7&nbsp;B&nbsp;\u0985\u09ac\u099c\u09c7\u0995\u09cd\u099f \u0995\u09be\u099c\u099f\u09bf \u09b6\u09c7\u09b7 \u0995\u09b0\u09c7\u099b\u09c7\u0964 \u098f\u099f\u09be \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/\" \/>\n<meta property=\"og:site_name\" content=\"Touhid Apps!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/touhidapps\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/touhid1010\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-01T20:31:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-07T07:35:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/touhidapps.com\/learn\/wp-content\/uploads\/2020\/09\/kotlin-compose-multiplatform-bangla-android-course-cover.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@#\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/touhidapps.com\/learn\/#organization\",\"name\":\"Touhid Apps Learn\",\"url\":\"https:\/\/touhidapps.com\/learn\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/touhidapps\",\"https:\/\/www.linkedin.com\/company\/touhid-apps\",\"https:\/\/www.youtube.com\/touhidapps\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/touhidapps.com\/learn\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/touhidapps.com\/learn\/wp-content\/uploads\/2020\/09\/kotlin-compose-multiplatform-bangla-android-course-cover.jpg\",\"width\":1920,\"height\":1080,\"caption\":\"Touhid Apps Learn\"},\"image\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/touhidapps.com\/learn\/#website\",\"url\":\"https:\/\/touhidapps.com\/learn\/\",\"name\":\"Touhid Apps!\",\"description\":\"Makes Apps Development Fun | Bangla Android Kotlin Tutorial Courses\",\"publisher\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/touhidapps.com\/learn\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/#webpage\",\"url\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/\",\"name\":\"\\u09b8\\u09c1\\u0987\\u09ab\\u099f \\u09b2\\u09cd\\u09af\\u09be\\u0999\\u09cd\\u0997\\u09c1\\u09df\\u09c7\\u099c\\u09c7 \\u09a1\\u09c7\\u09b2\\u09bf\\u0997\\u09c7\\u099f \\u0987\\u09ae\\u09aa\\u09cd\\u09b2\\u09bf\\u09ae\\u09c7\\u09a8\\u09cd\\u099f \\u0995\\u09b0\\u09be - Implementing delegates in Swift - Touhid Apps!\",\"isPartOf\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/#primaryimage\"},\"datePublished\":\"2020-04-01T20:31:16+00:00\",\"dateModified\":\"2024-04-07T07:35:34+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/\"]}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/#webpage\"},\"author\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/#\/schema\/person\/fa5754d3b194eade4772b66d9c310115\"},\"headline\":\"\\u09b8\\u09c1\\u0987\\u09ab\\u099f \\u09b2\\u09cd\\u09af\\u09be\\u0999\\u09cd\\u0997\\u09c1\\u09df\\u09c7\\u099c\\u09c7 \\u09a1\\u09c7\\u09b2\\u09bf\\u0997\\u09c7\\u099f \\u0987\\u09ae\\u09aa\\u09cd\\u09b2\\u09bf\\u09ae\\u09c7\\u09a8\\u09cd\\u099f \\u0995\\u09b0\\u09be &#8211; Implementing delegates in Swift\",\"datePublished\":\"2020-04-01T20:31:16+00:00\",\"dateModified\":\"2024-04-07T07:35:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/#webpage\"},\"publisher\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/#organization\"},\"image\":{\"@id\":\"https:\/\/touhidapps.com\/learn\/implementing-delegates-in-swift\/#primaryimage\"},\"keywords\":\"Apple,iOS,programming language,swift\",\"articleSection\":\"iOS SDK,Language,Swift\",\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/touhidapps.com\/learn\/#\/schema\/person\/fa5754d3b194eade4772b66d9c310115\",\"name\":\"Md. Touhidul Islam\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/touhidapps.com\/learn\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/touhidapps.com\/learn\/wp-content\/uploads\/nsl_avatars\/6d841e66bc35036a9a24410322a30c0a.jpg\",\"caption\":\"Md. Touhidul Islam\"},\"description\":\"Android | iOS | Kotlin | Swift -- \\u09e8\\u09e6\\u09e7\\u09ec \\u09b8\\u09be\\u09b2 \\u09a5\\u09c7\\u0995\\u09c7 \\u09a8\\u09cd\\u09af\\u09be\\u099f\\u09bf\\u09ad \\u098f\\u09a8\\u09cd\\u09a1\\u09cd\\u09b0\\u09df\\u09c7\\u09a1 \\u0993 \\u09a8\\u09cd\\u09af\\u09be\\u099f\\u09bf\\u09ad \\u0986\\u0987\\u0993\\u098f\\u09b8 \\u09a6\\u09c1\\u099f\\u09bf \\u09aa\\u09cd\\u09b2\\u09be\\u099f\\u09ab\\u09b0\\u09cd\\u09ae\\u09c7\\u0987 \\u0995\\u09be\\u099c \\u0995\\u09b0\\u099b\\u09bf\\u0964 \\u09e9 \\u099f\\u09bf \\u09a6\\u09c7\\u09b6\\u09bf \\u0993 \\u09e8 \\u099f\\u09bf \\u09ae\\u09be\\u09b2\\u09cd\\u099f\\u09bf\\u09a8\\u09c7\\u09b6\\u09a8\\u09be\\u09b2 \\u0995\\u09cb\\u09ae\\u09cd\\u09aa\\u09be\\u09a8\\u09bf\\u09a4\\u09c7 \\u0995\\u09be\\u099c \\u0995\\u09b0\\u09be \\u09b9\\u09df\\u09c7\\u099b\\u09c7\\u0964 \\u098f\\u0996\\u09a8 \\u0986\\u099b\\u09bf \\u09ae\\u09be\\u09b2\\u09df\\u09c7\\u09b6\\u09bf\\u09df\\u09be\\u09b0 \\u0995\\u09c1\\u09df\\u09be\\u09b2\\u09be\\u09b2\\u09be\\u09ae\\u09aa\\u09c1\\u09b0\\u09c7\\u0964 \\u098f\\u0996\\u09be\\u09a8\\u09c7 \\u098f\\u0995\\u099f\\u09bf \\u09ae\\u09be\\u09b2\\u09cd\\u099f\\u09bf-\\u09a8\\u09cd\\u09af\\u09be\\u09b6\\u09a8\\u09be\\u09b2 \\u09ac\\u09cd\\u09af\\u09be\\u0982\\u0995\\u09c7\\u09b0 \\u09ae\\u09cb\\u09ac\\u09be\\u0987\\u09b2 \\u098f\\u09cd\\u09af\\u09be\\u09aa \\u09a1\\u09c7\\u09ad\\u09b2\\u09aa\\u09ae\\u09c7\\u09a8\\u09cd\\u099f \\u09a8\\u09bf\\u09df\\u09c7 \\u0995\\u09be\\u099c \\u0995\\u09b0\\u099b\\u09bf\\u0964 \\u09a6\\u09c7\\u09b6\\u09c7 \\u09a5\\u09be\\u0995\\u09a4\\u09c7 \\u099c\\u09ac\\u09c7\\u09b0 \\u09aa\\u09be\\u09b6\\u09be\\u09aa\\u09be\\u09b6\\u09bf \\u09a2\\u09be\\u0995\\u09be\\u09b0 \\u09e8\\u099f\\u09bf \\u09ac\\u09c3\\u09b9\\u09a4\\u09cd\\u09a4\\u09ae \\u099f\\u09cd\\u09b0\\u09c7\\u09a8\\u09bf\\u0982 \\u09b8\\u09c7\\u09a8\\u09cd\\u099f\\u09be\\u09b0\\u09c7 \\u09aa\\u09be\\u09b0\\u09cd\\u099f-\\u099f\\u09be\\u0987\\u09ae \\u098f\\u09a8\\u09cd\\u09a1\\u09cd\\u09b0\\u09df\\u09c7\\u09a1 \\u099f\\u09cd\\u09b0\\u09c7\\u0987\\u09a8\\u09be\\u09b0 \\u09b9\\u09bf\\u09b8\\u09c7\\u09ac\\u09c7 \\u0995\\u09be\\u099c \\u0995\\u09b0\\u09be \\u09b9\\u09df\\u09c7\\u099b\\u09c7\\u0964 \\u09a4\\u09a5\\u09cd\\u09af\\u09aa\\u09cd\\u09b0\\u09af\\u09c1\\u0995\\u09cd\\u09a4\\u09bf\\u09a4\\u09c7 \\u09ae\\u09be\\u09b8\\u09cd\\u099f\\u09be\\u09b0\\u09cd\\u09b8 \\u0995\\u09b0\\u09c7\\u099b\\u09bf \\u099c\\u09be\\u09b9\\u09be\\u0999\\u09cd\\u0997\\u09c0\\u09b0\\u09a8\\u0997\\u09b0 \\u09ac\\u09bf\\u09b6\\u09cd\\u09ac\\u09ac\\u09bf\\u09a6\\u09cd\\u09af\\u09be\\u09b2\\u09df\\u09c7\\u09b0 IIT \\u09a5\\u09c7\\u0995\\u09c7\\u0964 \\u0997\\u09cd\\u09b0\\u09be\\u09ae\\u09c0\\u09a8\\u09ab\\u09cb\\u09a8 \\u0995\\u09cb\\u09a1 \\u09ae\\u09be\\u09b8\\u09cd\\u099f\\u09be\\u09b0 \\u09b9\\u09cd\\u09af\\u09be\\u0995\\u09be\\u09a5\\u09a8\\u09c7 (\\u09e8\\u09e6\\u09e8\\u09e6) \\u098f\\u09a8\\u09cd\\u09a1\\u09cd\\u09b0\\u09df\\u09c7\\u09a1\\u09c7 \\u09b0\\u09be\\u09a8\\u09be\\u09b0\\u0986\\u09aa \\u099b\\u09bf\\u09b2\\u09be\\u09ae\\u0964 \\u0995\\u09be\\u099c \\u0995\\u09b0\\u09c7\\u099b\\u09bf \\u09ab\\u09bf\\u09a8\\u099f\\u09c7\\u0995, \\u09b0\\u09be\\u0987\\u09a1 \\u09b6\\u09c7\\u09df\\u09be\\u09b0\\u09bf\\u0982, \\u09b6\\u09b0\\u09cd\\u099f \\u09ad\\u09bf\\u09a1\\u09bf\\u0993 \\u09b6\\u09c7\\u09df\\u09be\\u09b0\\u09bf\\u0982, \\u09b2\\u09be\\u0987\\u09ad \\u09ac\\u09cd\\u09b0\\u09a1\\u0995\\u09be\\u09b8\\u09cd\\u099f\\u09bf\\u0982, \\u09a8\\u09bf\\u0989\\u099c \\u0987\\u09a4\\u09cd\\u09af\\u09be\\u09a6\\u09bf \\u09ac\\u09bf\\u09ad\\u09bf\\u09a8\\u09cd\\u09a8 \\u09a7\\u09b0\\u09a8\\u09c7\\u09b0 \\u098f\\u09cd\\u09af\\u09be\\u09aa \\u09a8\\u09bf\\u09df\\u09c7\\u0964 \\u0995\\u09ae\\u09bf\\u0989\\u09a8\\u09bf\\u099f\\u09bf\\u09b0 \\u099c\\u09a8\\u09cd\\u09af \\u0985\\u09a8\\u09c7\\u0995 \\u0986\\u0997\\u09c7 \\u09a5\\u09c7\\u0995\\u09c7\\u0987 \\u0987\\u0989\\u099f\\u09bf\\u0989\\u09ac\\u09c7 \\u09ad\\u09bf\\u09a1\\u09bf\\u0993 \\u09a6\\u09bf\\u09df\\u09c7 \\u0986\\u09b8\\u099b\\u09bf \\u09af\\u09be\\u09b0 \\u09ae\\u09be\\u09a7\\u09cd\\u09af\\u09ae\\u09c7 \\u0986\\u09ae\\u09be\\u09b0 \\u09ac\\u09be\\u09b8\\u09cd\\u09a4\\u09ac \\u0985\\u09ad\\u09bf\\u099c\\u09cd\\u099e\\u09a4\\u09be\\u0997\\u09c1\\u09b2\\u09cb \\u09b8\\u0995\\u09b2\\u09c7\\u09b0 \\u09b8\\u09be\\u09a5\\u09c7 \\u09b6\\u09c7\\u09df\\u09be\\u09b0 \\u0995\\u09b0\\u099b\\u09bf\\u0964\",\"sameAs\":[\"https:\/\/touhidapps.com\",\"https:\/\/www.facebook.com\/touhid1010\",\"#\",\"https:\/\/www.linkedin.com\/in\/touhid1010\",\"#\",\"https:\/\/twitter.com\/#\",\"#\",\"https:\/\/www.youtube.com\/touhidapps\",\"#\",\"#\",\"#\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/posts\/175"}],"collection":[{"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":1,"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":7483,"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/posts\/175\/revisions\/7483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/touhidapps.com\/learn\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touhidapps.com\/learn\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}