vendredi 27 mars 2015

UIScrollview is not scrolling beyond UIView height even though UIView frame is increased

I am trying to create a screen where scrolling is required in iphone 3.5 inch screen . I have attached images which contain the configuration of uiviewcontroller , uiscrollview , uiview . The problem is eventhough the height seems to increase , when i run iPhone 4s , some part of scroll is hidden beyond the UIView (Although uiview height shows 700 when i print the height in console) . What might be the problem ? Please help me ?enter image description here


enter image description here


enter image description here


enter image description here


enter image description here


enter image description here


enter image description here


enter image description here


enter image description here




jeudi 26 mars 2015

Pushkit voip push notifications are not being received on iOS8.0.2

I implemented new pushkit voip push notifications and until now it has been working properly in all iOS8 devices I tested except one. I ve got an iPhone iOS 8.0.2 which is not receiving any voip push. It registers correctly as I get the pushRegistry:didUpdatePushCredentials: forType: delegate called I tested previous remote pushes (registerForRemoteNotifications) with success but none of sent voip push are received.


So my questions are:


*Anyone has experienced same behavior for pushkit voip push notifications?


*Could it be something related with iOS version (iOS 8.0.2)?


*Could anyone having this version (iOS 8.0.2), implementpushkit voip push and try to receive a voip push notification in order to discard version problem?


If you need to implement pushkit voip push notifications you can check my answer on stackoverflow question




Renaming a project in Xcode, I cannot rename anymore and it crashes

I tried to rename my project in xcode, but when I tried to go to a second view controller, everything crashed. So, I tried to rename it one more time. But now I am really stuck...


It is now saying that it is running 'myNewName.temp_caseinsensitive_rename' on iPhone and still everything crashes when I go to the second view controller. But now, I cannot change it. Everytime I change it, the '.temp_caseinsensitive_rename' is still there... Crap, What should I do! I am really lost now...


I am using xcode 6.2 on Mavericks.




Is there support in Cordova to WKWebView?

I would like to know if is possible use WKWebView with cordova. And if this is possible, how I can use.


I read that cordova 4.0 maybe will use WKWebView, but I can't find if this is in production.




swift sqlite3 - sqlite3_open not creating database

I'm writing my first swift universal app. I have used Sqlite3 in objective-c apps before so I would like to think i have a fairly decent knowledge of it. I'm using Sqlite3 to store data that is downloaded from a server when the app first loads. The problem i'm having is that when I run the app on the IOS simulator it works just fine, however when I run it on an actual device it doesn't seem to be creating the database file.


I have the following code



func dataFilePath() -> String
{
let documentDirectory = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String
return documentDirectory
}
func dataFile() -> String
{
return "App.sqlite3"
}

func InitialiseDatabase()
{
var databaseName = dataFilePath()
databaseName += dataFile()

var database:COpaquePointer = nil
var result = sqlite3_open(databaseName, &database)
if result != SQLITE_OK {
println(sqlite3_errmsg(database));
sqlite3_close(database)
return
}

.......... more code here


When this runs it is not returning SQLITE_OK on the actual device. I'm wondering if it's some sort of permissions issue? sqlite_3_errmsg just returns some code which doesn't bring up any results on google so that hasn't helped.


Any ideas?




memory leak when using images in Swift?

I have a very simple app with two viewControllers at the moment. I have a transition between them (with a segue of course) and both screens have a lot of images and buttons with images.


What I discovered was that there is a memory leak when you alternate between the screens. I am guessing, that somehow the images are loaded again each time you open the viewController again. Around 6MB is added each time and I am pretty sure that the images are less than 1MB in total. So maybe there is something else craving all the memory?


I have 6 image Views and I use the cross dissolve transition in the default modus. I wish I could copy some code here, but it is a big project and I would not know what code would be helpful.


So my question would be: what is causing this problem (and preferable how can I fix this)? Is it the images, or maybe the segues with the transition.


Any help would be really appreciated! Thanks!




Can I keep my app in Testflight during approval process

Does anyone know if you can keep your app in TestFlight during the approval process?