isadon / rmessage Goto Github PK
View Code? Open in Web Editor NEWA crisp in-app notification/message banner built in Swift.
License: MIT License
A crisp in-app notification/message banner built in Swift.
License: MIT License
Hello, could we update the podspec please :) otherwise we are stuck with the version that doesnt load the NIB properly hehe!
thanks!
It is a great work! Can I add some attributedString in the subtitle?
We have a crash in production, we are having a hard time reproducing it in test.
The scenario is we put up an RMessage with endless duration on our rootViewController. Sometime after going to background (possibly when coming back into the app), it crashes.
To fix it we have set a high value for the duration rather than "EndlessDuration" in our RMessage because "didMoveToWindow" calls extra code only when it is set to Endless.
Stack trace:
1 MYAPPNAME 0x0000000100091f2c -[RMessage dismissMessageView:completion:] + 32
2 MYAPPNAME 0x0000000100093930 -[RMessageView didMoveToWindow] + 308
3 UIKit 0x00000001887b705c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1492
4 UIKit 0x00000001887b6d7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 756
5 UIKit 0x00000001887b6310 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 148
6 Foundation 0x00000001843e9500 -[NSISEngine withBehaviors:performModifications:] + 164
7 UIKit 0x00000001887b6194 -[UIView(Hierarchy) _postMovedFromSuperview:] + 528
8 UIKit 0x0000000188aca8c0 __UIViewWasRemovedFromSuperview + 224
9 UIKit 0x00000001887b4bb8 -[UIView(Hierarchy) removeFromSuperview] + 420
10 UIKit 0x0000000188b18dc0 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke596 + 684
11 UIKit 0x0000000188b137e4 -[UIPresentationController transitionDidFinish:] + 120
12 UIKit 0x0000000188c3c530 -[_UICurrentContextPresentationController transitionDidFinish:] + 40
13 UIKit 0x0000000188b16e88 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 184
14 UIKit 0x00000001888eb284 -[_UIViewControllerTransitionContext completeTransition:] + 112
15 UIKit 0x00000001888eb070 -[UITransitionView notifyDidCompleteTransition:] + 248
16 UIKit 0x00000001888eab6c -[UITransitionView _didCompleteTransition:] + 1160
17 UIKit 0x00000001888ea6cc -[UITransitionView _transitionDidStop:finished:] + 120
18 UIKit 0x00000001887f6e90 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 308
19 UIKit 0x00000001887f6d18 -[UIViewAnimationState animationDidStop:finished:] + 104
20 QuartzCore 0x00000001861cdc00 CA::Layer::run_animation_callbacks() + 280
21 libdispatch.dylib 0x000000018351d5f0 _dispatch_client_callout + 12
22 libdispatch.dylib 0x0000000183522cf8 _dispatch_main_queue_callback_4CF + 1840
23 CoreFoundation 0x0000000183a80bb0 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8
24 CoreFoundation 0x0000000183a7ea18 __CFRunLoopRun + 1624
25 CoreFoundation 0x00000001839ad680 CFRunLoopRunSpecific + 380
26 GraphicsServices 0x0000000184ebc088 GSEventRunModal + 176
27 UIKit 0x0000000188824d90 UIApplicationMain + 200
28 MYAPPNAME 0x000000010003e2d4 main + 84
29 libdyld.dylib 0x000000018354e8b8 start + 0
After looking at this conversation I am a little unsure of which repo I should use in my app. I would rather not end up integrating the wrong one in my project only to find out you'll be working on the other. Advice?
It would be nice if we have carthage support. Thank you
Hi there,
Is it possible to set the tint color for the icon inside of AlternativeDesigns.json?
I have checked the guide and it isn't there, but is it possible to do so without creating multiple coloured image sets? Would just be a good space saver for me because I use differently colored icons multiple times throughout my app.
Thanks!
I want to use RMessage to show countdown. How can I update the text of visible RMessage?
(For e.g.:- In temple run game, while resuming it shows 3..2..1. In similar fashion, I want to use RMessage and update the text)
In your second example
title:@"Update available"
subtitle:@"Please update the app"
image:nil
image
needs to become iconImage
Also in your [RMessageView appearance]
example
[[RMessageView appearance] setContentFont:[UIFont boldSystemFontOfSize:10]];
[[RMessageView appearance] setContentTextColor:[UIColor greenColor]];
needs to become
[[RMessageView appearance] setSubtitleFont:[UIFont boldSystemFontOfSize:10]];
[[RMessageView appearance] setSubtitleTextColor:[UIColor greenColor]];
When setting prefersStatusBarHidden to true on a view controller on the iPhone X, it seems the RMessage notification's height doesn't extend below the notch like it does for VCs with or without navigation bars.
I'm trying to display a message over the application window but can't except I use "shownotification onViewcontroller" but in my app delegate I can't know the view controller that the app is currently on. I want to use this to display message when user receives notification when app is in foreground
Hi there!
I just started testing on iPhone X and noticed that the top banner (when no nav bar is present) doesn't extend down far enough to show the title and description properly.
This is obviously due to the weird new height measurements of iPhone X's nav bar but I was wondering if this is already a solved issue or if there's something I should be specifically doing to solve this?
Thanks!
This is the code I'm using:
[RMessage showNotificationWithTitle:@"Important account change"
subtitle:@"You have been logged out due to an important account change."
type:RMessageTypeCustom
customTypeName:mProfileStyleKey
callback:nil];
Hi,
I seems I've crashing in debug. I've updated to 2.3.2 but issue persists.
Also, if building a test flight the issue goes away. So this only concerns debug builds (consistently).
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/user/Library/Developer/CoreSimulator/Devices/31E95C45-5A85-4F22-B5C5-757E2A6A837F/data/Containers/Bundle/Application/260E17FE-DBFE-418D-9BE9-8B28D8A2C167/MyApp.app> (loaded)' with name 'RMessageView''
I've been looking to integrate some testing to RMessage, but given that its mostly a visual library the testing will have to be with XCUITest which I'm a bit iffy about since the UI Testing will be limited to only what the Example project can incorporate. Regardless some testing is better than none, but more extensive testing will definitely require the Example Project to be designed to allow for XCUITest to do as many possible tests.
I tried 2.2.0 and found that margins in a message view when a navigation bar is hidden and a sub title is empty are different from 2.1.5. I like the layout in 2.1.5 because it has enough margins. Is this supposed to be this layout in 2.2.0?
2.2.0 | 2.1.5 |
---|---|
[RMessage showNotificationWithTitle:NSLocalizedString(@"Tell the user something", nil)
subtitle:nil
type:RMessageTypeNormal
customTypeName:nil
callback:nil];
Allow RMessage to blur the background of what its presented over as originally intended in TSMessages. The blur tint color and opacity of the tint color should be customizable as well as the ability to toggle the blur per a json key in the design file. --Initial code is looking good.
I'm using RMessage with just title, no subtitle, no icon, etc. But the default MessageView size too big for just one line of text. Can you provide any way to alter constraint constant or something similarly to change the height of MessageView?
Thank you very much.
How to set the custom font to title and subtitle and also with font size?
Initial thinking is to allow RMessage to be a view controller that is presented over other view controllers. Given this, we can look into possibly using the UITransitioningDelegate presentation flow to allow users of RMessage to implement their own custom animators.
I have just moved over to TSMessage to RMessage and the buttons on the notifications are not visible. I took a look on the example project and yet they aren't present on those either.
Heres my code:
[RMessage showNotificationInViewController:self
title:@"Welcome to Version 4.4"
subtitle:@"Would you like to take a read of the release notes?"
iconImage:[UIImage imageNamed:@"iconNotes"]
type:RMessageTypeCustom
customTypeName:@"sdTheme"
duration:RMessageDurationEndless
callback:^{
NSLog(@"Tapped Notification");
}
buttonTitle:@"Read"
buttonCallback:^{
[self showReleaseNotes];
}
atPosition:RMessagePositionTop
canBeDismissedByUser:YES];
Hi,
It seems that when (spring) animating the message from the top, you can see the view controller on which we are presenting peek at the top for a brief moment. Has this been addressed before? supposedly the solution is making the height of the message window slightly higher.
Maybe this is related to #34 but after deploying the app on live we are getting three crashes in Crashlytics. Testing on various devices locally didn't turn anything up.
I'll add the three stacks which seem to center around _findCommonAncestorOfItem:andItem
and _setActive:mutuallyExclusiveConstraints
.
#0. Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1848f843c objc_msgSend + 28
1 Foundation 0x1861b5dbc +[NSLayoutConstraint _findCommonAncestorOfItem:andItem:] + 140
2 Foundation 0x1861b5868 -[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:] + 164
3 RMessage 0x103a95584 __38-[RMessageView dismissWithCompletion:]_block_invoke_2 + 220
4 UIKit 0x18ec8a980 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 620
5 UIKit 0x18edba070 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 100
6 RMessage 0x103a95478 __38-[RMessageView dismissWithCompletion:]_block_invoke + 216
7 libdispatch.dylib 0x18501aa54 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x18501aa14 _dispatch_client_callout + 16
9 libdispatch.dylib 0x185027698 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1016
10 CoreFoundation 0x185643344 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
11 CoreFoundation 0x185640f20 __CFRunLoopRun + 2012
12 CoreFoundation 0x185560c58 CFRunLoopRunSpecific + 436
13 GraphicsServices 0x18740cf84 GSEventRunModal + 100
14 UIKit 0x18ecb95c4 UIApplicationMain + 236
15 Volders 0x102a7fd14 main (main.m:15)
16 libdyld.dylib 0x18508056c start + 4
#0. Crashed: com.twitter.crashlytics.ios.exception
0 Volders 0x100903290 CLSProcessRecordAllThreads + 4307612304
1 Volders 0x100903290 CLSProcessRecordAllThreads + 4307612304
2 Volders 0x10090314c CLSProcessRecordAllThreads + 4307611980
3 Volders 0x1008f2e8c CLSHandler + 4307545740
4 Volders 0x100901298 __CLSExceptionRecord_block_invoke + 4307604120
5 libdispatch.dylib 0x182038a2c _dispatch_client_callout + 16
6 libdispatch.dylib 0x182075e54 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 Volders 0x100900d2c CLSExceptionRecord + 4307602732
8 Volders 0x100900b54 CLSExceptionRecordNSException + 4307602260
9 Volders 0x100900768 CLSTerminateHandler() + 4307601256
10 libc++abi.dylib 0x1818f137c std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x1818f0ccc __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 130
12 libobjc.A.dylib 0x181900720 _objc_exception_destructor(void*) + 362
13 CoreFoundation 0x182745548 __methodDescriptionForSelector + 138
14 CoreFoundation 0x18273da74 ___forwarding___ + 1380
15 CoreFoundation 0x182623b0c _CF_forwarding_prep_0 + 92
16 Foundation 0x183293044 +[NSLayoutConstraint _findCommonAncestorOfItem:andItem:] + 140
17 Foundation 0x183292af8 -[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:] + 164
18 RMessage 0x101809584 __38-[RMessageView dismissWithCompletion:]_block_invoke_2 + 220
19 UIKit 0x18ca199f4 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 608
20 UIKit 0x18cb46b88 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 100
21 RMessage 0x101809478 __38-[RMessageView dismissWithCompletion:]_block_invoke + 216
22 libdispatch.dylib 0x182038a6c _dispatch_call_block_and_release + 24
23 libdispatch.dylib 0x182038a2c _dispatch_client_callout + 16
24 libdispatch.dylib 0x182079d00 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 964
25 CoreFoundation 0x1826e0660 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
26 CoreFoundation 0x1826de1b8 __CFRunLoopRun + 2272
27 CoreFoundation 0x1825fe498 CFRunLoopRunSpecific + 552
28 GraphicsServices 0x1845bf020 GSEventRunModal + 100
29 UIKit 0x18ca4821c UIApplicationMain + 236
30 Volders 0x1007e7d14 main (main.m:15)
31 libdyld.dylib 0x18209dfc0 start + 4
#0. Crashed: com.twitter.crashlytics.ios.exception
0 Volders 0x10441b290 CLSProcessRecordAllThreads + 4377440912
1 Volders 0x10441b290 CLSProcessRecordAllThreads + 4377440912
2 Volders 0x10441b14c CLSProcessRecordAllThreads + 4377440588
3 Volders 0x10440ae8c CLSHandler + 4377374348
4 Volders 0x104419298 __CLSExceptionRecord_block_invoke + 4377432728
5 libdispatch.dylib 0x1849faa14 _dispatch_client_callout + 16
6 libdispatch.dylib 0x184a37d4c _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 Volders 0x104418d2c CLSExceptionRecord + 4377431340
8 Volders 0x104418b54 CLSExceptionRecordNSException + 4377430868
9 Volders 0x104418768 CLSTerminateHandler() + 4377429864
10 libc++abi.dylib 0x1842b454c std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x1842b3ea8 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 134
12 libobjc.A.dylib 0x1842c465c _objc_exception_destructor(void*) + 362
13 CoreFoundation 0x18507b0ac -[NSException initWithCoder:] + 114
14 Foundation 0x185b958f4 -[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:] + 304
15 RMessage 0x105315584 __38-[RMessageView dismissWithCompletion:]_block_invoke_2 + 220
16 UIKit 0x18e66a980 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 620
17 UIKit 0x18e79a070 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 100
18 RMessage 0x105315478 __38-[RMessageView dismissWithCompletion:]_block_invoke + 216
19 libdispatch.dylib 0x1849faa54 _dispatch_call_block_and_release + 24
20 libdispatch.dylib 0x1849faa14 _dispatch_client_callout + 16
21 libdispatch.dylib 0x184a3bc80 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 968
22 CoreFoundation 0x185023344 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
23 CoreFoundation 0x185020f20 __CFRunLoopRun + 2012
24 CoreFoundation 0x184f40c58 CFRunLoopRunSpecific + 436
25 GraphicsServices 0x186decf84 GSEventRunModal + 100
26 UIKit 0x18e6995c4 UIApplicationMain + 236
27 Volders 0x1042ffd14 main (main.m:15)
28 libdyld.dylib 0x184a6056c start + 4
Hello,
Is it normal when a use the following code:
[RMessage showNotificationWithTitle:@"title"
subtitle:textToDisplay
type:RMessageTypeError
customTypeName:nil
callback:nil];
it show multiple times. I call it in a notification observer and the code is called 2, 3 or 4 times instead of one...
Why ?
Thank you
Notifications are display below the Navigation Bar with empty space on top (that space should be behind the navigation bar I guess)
I use the Objective C version. So far this issue only appeared on iOS 10 in an UITableViewController. In UIViewController it works fine.
Use a well defined config struct to prevent super long RMessage calls.
Hi. It seems I found an issue with rotation. Here is a video. I just created a new project and add a navigation controller.
Hi!
Is there any problems on iOS8? I checked on simulator - looks like everything is working.
So what was the reason for setting iOS9+ and is it possible to support iOS8, to use it with cocoapods?
Hi, I switched form TSMessage to RMessage and when using it after pods installation I got the following error each time I call any of the Messages. It seems to fail loading de xib file. It happens in any call, for example:
[RMessage showNotificationWithTitle:@"Log In Error"
subtitle:@"Username contains an error"
type:RMessageTypeWarning
customTypeString:nil];
I get the follwing error:
2016-01-18 09:43:33.600 AppName[40137:3085852] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/MyUser/Library/Developer/CoreSimulator/Devices/XXXX/data/Containers/Bundle/Application/XXXXX/AppName.app> (loaded)' with name 'RMessageView''
*** First throw call stack:
(
0 CoreFoundation 0x0000000108dc1e65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010883adeb objc_exception_throw + 48
2 CoreFoundation 0x0000000108dc1d9d +[NSException raise:format:] + 205
3 UIKit 0x00000001099893cf -[UINib instantiateWithOwner:options:] + 499
4 UIKit 0x000000010998bb5b -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 223
5 RMessage 0x0000000107d889e1 -[RMessageView initWithDelegate:title:subtitle:iconImage:type:customTypeString:duration:inViewController:callback:buttonTitle:buttonCallback:atPosition:canBeDismissedByUser:] + 561
6 RMessage 0x0000000107d86408 +[RMessage showNotificationInViewController:title:subtitle:iconImage:type:customTypeString:duration:callback:buttonTitle:buttonCallback:atPosition:canBeDismissedByUser:] + 664
7 RMessage 0x0000000107d8611e +[RMessage showNotificationInViewController:title:subtitle:type:customTypeString:] + 270
8 RMessage 0x0000000107d85cec +[RMessage showNotificationWithTitle:subtitle:type:customTypeString:] + 156
9 AppName 0x0000000107a2f6f2 -[LoginViewController validLogInParameters:password:] + 242
10 AppName 0x0000000107a30297 -[LoginViewController login:password:] + 215
11 AppName 0x0000000107a2dcc8 -[LoginViewController loginAction:] + 248
12 UIKit 0x00000001095cf194 -[UIApplication sendAction:to:from:forEvent:] + 92
13 UIKit 0x000000010973e6fc -[UIControl sendAction:to:forEvent:] + 67
14 UIKit 0x000000010973e9c8 -[UIControl _sendActionsForEvents:withEvent:] + 311
15 UIKit 0x000000010973daf8 -[UIControl touchesEnded:withEvent:] + 601
16 UIKit 0x000000010963e49b -[UIWindow _sendTouchesForEvent:] + 835
17 UIKit 0x000000010963f1d0 -[UIWindow sendEvent:] + 865
18 UIKit 0x00000001095edb66 -[UIApplication sendEvent:] + 263
19 UIKit 0x00000001195a2871 -[UIApplicationAccessibility sendEvent:] + 77
20 UIKit 0x00000001095c7d97 _UIApplicationHandleEventQueue + 6844
21 CoreFoundation 0x0000000108ceda31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22 CoreFoundation 0x0000000108ce395c __CFRunLoopDoSources0 + 556
23 CoreFoundation 0x0000000108ce2e13 __CFRunLoopRun + 867
24 CoreFoundation 0x0000000108ce2828 CFRunLoopRunSpecific + 488
25 GraphicsServices 0x000000010dcabad2 GSEventRunModal + 161
26 UIKit 0x00000001095cd610 UIApplicationMain + 171
27 AppName 0x0000000107a45c2f main + 111
28 libdyld.dylib 0x000000010ba1792d start + 1
29 ??? 0x0000000000000001 0x0 + 1
)
On the other hand I added the code manually and there are no issues. Does this happen to anybody else?
PS. Perhaps I should not raise this here, but I have noticed some minor differences from the documentation github and the code such as enumerations like
RMessageNotificationType...
that should be RMessageType...
.
Thanks.
I find it confusing for people to use it.
The Issue is, that a Notification is displayed onto of the current Content.
This should be a Subview in Navigationbar and pushes the content further down.
If you have a scroll list with Large Title and start to scroll the Large title becomes small and the notification is stuck in the upper part of the screen.
Wasn't able to solve it myself :(
I updated my pods and I get this error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
as this line 986:
[messageNavigationController.view insertSubview:self belowSubview:messageNavigationController.navigationBar];
I have this in my pod file:
pod 'RMessage', :git => 'https://github.com/donileo/RMessage.git', :branch => 'develop'
I use iPhone 6s, iOS 11.2
Currently RMessage is always displayed at the top of the screen. Please update the code to position it at the bottom of the screen as well!
Thank you
Hi,
[RMessage showNotificationWithTitle:@"Error Title" type:RMessageTypeError customTypeName:nil callback:^{
// callback
}];
By calling showNotificationWithTitlte, I got notification under navigation bar. Is that possible to create notification in front of navigation bar? Thank you!
There's the risk of an infinite loop when using the automatic presentationViewController detection from a modal, like this: NavigationController -> Modal (via visibleViewController) -> NavigationController (via presentingViewController) -> etc
Creating this issue because I think useful for others to know about when evaluating the library, but potential fix is available in #56
The customised push can be shown on top while in iPhone 6 plus, 5s, etc. but it is no showing the customised push while in iPhoneX.
While the customised push can be shown while the phone is connecting to Mac with Xcode is compiling.
The app is detecting push on appdelegate.m inside method didReceiveRemoteNotification:fetchCompletionHandler: for all cases.
Using Xcode 7.3.1.
RMessage Release 2.1.5
It is strange, can you try to figure it out and resolve it asap.
:)
Thanks.
Hello, there!
I have some queued messages and a displayed notification. Is it possible to reset all and then just show a new notification without dismiss for each messages I don't want?
Hi,
@donileo Could you please align title to be vertically centered when subtitle is not presented, thank you.
RMessagePositionNavBarOverlay showing on entire screen.
Hello. After long time i write new project that need to include some notification view, then I used your library, thanks for great code.
After run app in ios 11. I see the blur effect not working as expect. Plz see my attack picture to see my problem.
This image is captured from simulator. Then below is my setting
"warning": {
"backgroundColor": "#FFCC00",
"backgroundColorAlpha": 0.3,
"titleTextColor": "#484638",
"titleFontSize": 14,
"subTitleFontSize": 12,
"subTitleTextColor": "#484638",
"iconImage": "NotificationBackgroundWarningIcon.png",
"blurBackground": 1
},
Hi,
I am trying to show a success message but can't get the image to show. Couldn't "SuccessMessageIcon.png" in the project folder.
Using pods and the latest (swift) version.
Hi,
I again have crash of RMessage:
pod 'RMessage', :git => 'https://github.com/donileo/RMessage.git', :commit => '9e87b0d'
It's on the line 1127 of the RMessageView.m (self.topToVCLayoutConstraint.active = YES;)
Here I am sending you video where I am uploading files, then showing success message.
First file went well, but second got stuck. (Sometimes first got stuck)
I think it's something due UITableView reload and showing RMessage in "same time".
video: https://streamable.com/mecc8
Hi,
I recently updated an app that uses RMessage (which I am using for long time), however, some apps crash with the following message:
Could not load NIB in bundle: 'NSBundle (loaded)' with name 'RMessageView'
Using it in iOS 13.3 on an iPad.
Any ideas?
Making the icon RMessage presents a UIView gives us freedom to present a UIButton, a UIImageView, and custom UIViews. This is better than the fixed type UIImageView that is expected to be an icon on the left of the RMessage title and subtitle message. We should also allow the user to dictate whether to present the icon/(custom uiview) to the left, right, top, or bottom of the the actual message.
I'm using RMessage (2.3.2).
I have a crash on line 508 in RMessageView.m with message:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSLayoutConstraint for <UIView: 0x133d56730; frame = (47 10; 343.333 50.6667); autoresize = RM+BM; layer = <CALayer: 0x283758de0>>: Constraint items must each be a view or layout guide.'
Call Rmessage like that:
[RMessage showNotificationInViewController:vc title:title subtitle:subTitle iconImage:nil type:RMessageTypeError customTypeName:nil duration:duration callback:callback buttonTitle:nil buttonCallback:nil atPosition:RMessagePositionTop canBeDismissedByUser:YES];
iOS 12
I put in a button title, but no button showed up.
By looking through RMessageView the button title does not seem to be used. Am I correct?
it requires two dependency "HexColors" and "PPTopMostController"
Is it possible to know when the popup is dismissed after the duration? ( Without user tapping)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.