Welcome To Snipplr
Everyone's Recent Snippets Tagged ios
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
The following example of iOS Phone sample SMS code employs user-friendly object, with a basis on the HTTP API.
0
1168
posted 7 years ago by Broadnet
The following example of iOS Phone sample SMS code employs user-friendly object, with a basis on the HTTP API.
0
1172
posted 7 years ago by Broadnet
https://www.chrisjmendez.com/2016/02/10/swift-simple-get-request/
0
1225
posted 8 years ago by chrisaiv
This snippet is used to covert any date to days like today, tomorrow, 2 days ago, 2 weeks ago or even 1 years ago.
0
1309
posted 8 years ago by dipenpatel
This step-by-step tutorial describes how to build an HTML5-based mobile web app by means of Webix library (open source, GPL) and PhoneGap framework. As a result you’ll get an awesome native app for Android devices with rich UI and high performance.
0
1276
posted 9 years ago by kengajunior
Place this in your <head> section, and set the href attribute to an image to a 57px x 57px PNG file.
0
969
posted 9 years ago by ajarkovsky
This snippet shows you how to reload the UIAppearance of an application after changes made on the proxies. This is required because iOS nativaly only load appearance proxies on "applicationDidFinishLaunching".
0
1901
posted 10 years ago by Nibli
- I have not tested on android
- This is not animated as I did not need it for my needs. To make it animated, look at the second to last line in the function `layer3.transform = Ti.UI.create2DMatrix().rotate(angle);` You should be able to animate th...
0
1062
posted 10 years ago by rondog
Call this method to set the intervals for a UISlider in Monotouch. You can remove the textbox parameter if you don't have them linked to sliders.
0
574
posted 11 years ago by negzero7
This is a simple fix for the iOS zoom bug that happens when changing screen orientations.
0
881
posted 11 years ago by bitsculptor
Add the init() function to your document.ready call. This allows touch events to be handled like click events.
0
908
posted 11 years ago by bitsculptor
pass a variable from web site (in php, in this case) to iOS app.
0
1122
posted 12 years ago by code4mac
This method will alloc the current class unless the device is a phone (also defined here). Then it will try to alloc the class with the suffix "Phone."
0
1042
posted 12 years ago by yar
The UISegmentedControl consists of a horizontal control divided into segments. Segmented controls are useful for allowing users to pick from a group or set of values.
Each segment functions as its own button. By default, selecting a segment will d...
1
1209
posted 12 years ago by zopebie
When performing tasks that may take some time, you often need to provide some kind of visual feedback to your users. If you know how long the task will take to complete, you can use a progress indicator to show the user how much of the task has been...
1
846
posted 12 years ago by zopebie
A sample code to show the scrolling, panning and zooming with UIScrollView
1
1325
posted 12 years ago by zopebie
HTML Snippet for apple-touch-icon for all of the different iOS devices, and Android 2.0 supported Icon.
0
1091
posted 12 years ago by luizlopes
Create custom web clip icons or "app logos" in various sizes to be displayed (instead of the default site snapshot) when users save your site to their Home screens. Across Safari iOS devices.
Add in the <head> in the same place you call your norm...
0
907
posted 12 years ago by beneberle
This function will detect the orientation (portrait/landscape) of an iOS device and set the body class to either portrait or landscape, as well as providing a global variable for use elsewhere in your JS.
If you require multiple classes on your bo...
3
1055
posted 12 years ago by iridium
Here is a nice function you can use to implement a custom background for your UINavigation Bars
Simply make two images in photoshop:
32 x 32
44 x 44
and name them whatever you want.
put them in your iPhone project by dragging and dro...
1
1062
posted 12 years ago by codeRefiner