In this post I’ll be covering few important things I think you should know if you decide to test apps made for iPhone/iPod in an iPad. You can't replicate application interruptions (such as a phone call or SMS text) as easily. To test iPhone app on iPad it must be iPhone-only app. Then you will be able to use ...
If you haven't still noticed UIDatePicker has changed in iOS7. However any app compiled using the old xcode will still have the old date picker. The new picker is quite different so be aware of any usability issues. In my case the problem was that I couldn't see the picker at all because of the new colour scheme. So don't ...
It is a common practice to rearrange the UI Elements when the keyboard appears (if required). If you split the keyboard (Do the split gesture or long press the keyboard hide button) the keyboard notifications UIKeyboardDidShowNotification and UIKeyboardDidHideNotification will not get called. If you were wondering how could you re-arrange the UI to appear above the keyboard, the answer is ...
Just finished watching WWDC 2014 and thought I might have slightly different opinion than of Tim regarding Apple’s success. Tim boasts about user base of both iOS 7 and Mavericks comparing Android and Windows 8. Can a user base only be an indicator of its success? One good reason for most Apple users to be using the latest version could ...
The documentation is prety extensive and when followed you can successfully get it running in both your simulator and device. However, you are in for two surprises!!! 1st Surprise Documentation doesn't tell you about their branching strategy. If you are like me and would always keep your 'master' branch stable and in a releasable state, you are in for ...
Singleton design pattern is the go-to pattern when one requires to manage a single state accross the board. In Swift initializing a singleton is very easy. In this post I want to talk about some concepts the documentation doesn't explicitly describe. As you saw in the documentation in Swift, you typically implement a singleton using a static constant to store ...
be grateful to your competitor annoying colleague abusive person lost opportunities all hardships makes you strong develops patience improves skills you are privileged be grateful
If you were under the above impression then the answer is you can with a little bit of change to your code. I’m guessing you are used to the following format, switch (value){ case value1: //some code break; case value2: //some code break; default: //some code break; } If you want to declare variables inside a case you need to ...
The following code will generate a primary key using the current time stamp, a character (I have used the character 'T' in this example) and a random number. I have used this to generate primary keys for database records. #include - (NSString *) getPrimaryKey{ NSDate *curDate = [[NSDate alloc]init]; NSTimeInterval inter = [curDate timeIntervalSince1970]; //return as double [curDate release]; NSString ...
The following three lines of code will open a URL in an Android app. I'm guessing you cannot open a local html file using the same method in your browser. Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.google.com")); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent);
Location: It is close to the Ella railway station and three attractions in the area (if you are up for hiking). They are the Nine Arch Bridge, Mini Adams Peak, and Ella Rock. Food: We only asked for breakfast. We were there for two days. Both days we got bread. Earliest you can get breakfast is 8.00 a.m. However, we ...
Making you app to understand voice command was not an easy task before the introduction of Siri (iOS) and Google assistant. Both are now opened for developers. However, as usual Apple's Siri is not fully open to the developers when compared to the capabilities of "Google Assistant". Siri is said to be limited to the following domains. - VoIP calling ...
With Xcode 4 came the concept of a workspace that allows multiple projects to be grouped together. Each workspace gets a unique set of symbol indexes, build products, window layouts, etc., otherwise referred to by Xcode as derived data. Since a single project can belong to more than one workspace this derived data is not contained under the individual project ...
I have been using Mantle for JSON serialisation for quite some time now. I loved it because it appeared to be a clean way to handle JSON objects. However somethings have changed in version 2.0. This is not an attempt to criticise the changes but an attempt to give a heads up before you update. Value transformers have changed. Old ...
If your program logic makes decisions based on time here are few things you need to remember. [NSDate date] will give you the GMT time and date. But this is calculated using the current device time. If the device time is wrong this value is also wrong. [[NSTimeZone systemTimeZone] name] will give the device time zone. e.g. Asia/Colombo [[NSTimeZone systemTimeZone]secondsFromGMT] ...
Setting an attributed string to an UITextView can be pretty straight forward. See code sample below, yourTextView.attributedText = Your attributed string However, I noticed that the scroll position of the UITextView changes upon executing the above line of code. The solution is to disable scrolling before setting the text. The code below worked for me, yourTextView.isScrollEnabled = false yourTextView.attributedText = ...
There are number of services available online for this task. Most of them are free too. But did you know that you can do the same with your Safari browser? I recommend it to be more safe on the privacy side as no third party will see the content you make PDFs out of.
I know its bit late but anyways... The symposium was held on 2nd of January 2015 at University of Moratuwa, Sri Lanka. Academics and industry experts participated the event from Universities like University of Colombo and Sri Lanka Institute of Information Technology (SLIIT). The keynote speech was given by Prof. Rohini Paranavitana (emeritus professor, department of Sinhala university of Colombo). ...
Following is how I implemented "remember me" feature in a recent app I did in swift. I'm saving the user details in NSUserDefaults upon requesting to remember.