When you don't have class implementation or library it defined in you have to obtain the class at runtime. This is what objc_getClass
function is for. It returns an objc class at runtime and gives you the ability to use the class without knowing anything about him at compile-time.
Just replace SBLockScreenNotificationScrollView
with objc_getClass("SBLockScreenNotificationScrollView")
.
I suggest you read about objective-C runtime. Developing tweaks requires you to understand at least basics in which case you wouldn't ask this kind of questions.