Showing: 61 - 70 of 71 Articles

Group Joining Xmpp : Getting all messages every-time after joined group.

Hello, After deep look on group joining method of XMPP, we found one solution is describe here: let  objXmppStream =  XMPPStream() let objGroup = “YourGroupname@YourXMPPHOST” let roomStorage = XMPPRoomMemoryStorage()  let roomJID = XMPPJID.jidWithString(objGroup)  let objXmppChatRoom = XMPPRoom(roomStorage: roomStorage, jid: roomJID, dispatchQueue: dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0))  objXmppChatRoom.activate(XMPPHelper.sharedInstance.objXmppStream)  objXmppChatRoom.fetchConfigurationForm()  let …

UILabel with text of two different colors

Problem: I want to display a string like this in a UILabel: Where the number 5 is red in color and the rest of the string Solution: NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithAttributedString: label.attributedText]; [text addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(10, 1)]; [label setAttributedText: text]; OR NSMutableAttributedString …

Application is being rejected by Apple due to “LEGAL: INTELLECTUAL PROPERTY – APPLE PRODUCTS”

Under the apple review guidelines section 5.2.3 Audio/Video Downloading: Apps should not facilitate illegal file sharing or include the ability to save, convert, or download media from third party sources (e.g. Apple Music, YouTube, SoundCloud, Vimeo, etc.) without explicit authorization from those sources. Streaming of …